Class AndroidResourceSignature

java.lang.Object
com.bumptech.glide.signature.AndroidResourceSignature
All Implemented Interfaces:
Key

public final class AndroidResourceSignature extends Object implements Key
Includes information about the package as well as whether or not the device is in night mode.
  • Method Details

    • obtain

      @NonNull public static Key obtain(@NonNull Context context)
    • equals

      public boolean equals(Object o)
      Description copied from interface: Key
      For caching to work correctly, implementations must implement this method and Key.hashCode().
      Specified by:
      equals in interface Key
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Description copied from interface: Key
      For caching to work correctly, implementations must implement this method and Key.equals(Object).
      Specified by:
      hashCode in interface Key
      Overrides:
      hashCode in class Object
    • updateDiskCacheKey

      public void updateDiskCacheKey(@NonNull MessageDigest messageDigest)
      Description copied from interface: Key
      Adds all uniquely identifying information to the given digest.

      Note - Using MessageDigest.reset() inside of this method will result in undefined behavior.

      Specified by:
      updateDiskCacheKey in interface Key