Class ShadowMediaStore

java.lang.Object
org.robolectric.shadows.ShadowMediaStore

@Implements(android.provider.MediaStore.class) public class ShadowMediaStore extends Object
Shadow for MediaStore.
  • Constructor Details

    • ShadowMediaStore

      public ShadowMediaStore()
  • Method Details

    • reset

      @Resetter public static void reset()
    • setStubBitmapForThumbnails

      public static void setStubBitmapForThumbnails(Bitmap bitmap)
    • notifyCloudMediaChangedEvent

      @Implementation(minSdk=33) protected static void notifyCloudMediaChangedEvent(ContentResolver resolver, String authority, String currentMediaCollectionId)
    • getCloudMediaChangedEvents

      public static com.google.common.collect.ImmutableList<ShadowMediaStore.CloudMediaChangedEvent> getCloudMediaChangedEvents()
      Returns an ImmutableList of all ShadowMediaStore.CloudMediaChangedEvent objects that MediaStore has been notified of.
    • clearCloudMediaChangedEventList

      public static void clearCloudMediaChangedEventList()
    • isSupportedCloudMediaProviderAuthority

      @Implementation(minSdk=33) protected static boolean isSupportedCloudMediaProviderAuthority(ContentResolver resolver, String authority)
    • addSupportedCloudMediaProviderAuthorities

      public static void addSupportedCloudMediaProviderAuthorities(List<String> authorities)
      Mutator method to add the input authorities to the list of supported cloud media provider authorities.
    • clearSupportedCloudMediaProviderAuthorities

      public static void clearSupportedCloudMediaProviderAuthorities()
      Mutator method to clear the list of supported cloud media provider authorities.
    • isCurrentCloudMediaProviderAuthority

      @Implementation(minSdk=33) protected static boolean isCurrentCloudMediaProviderAuthority(ContentResolver resolver, String authority)
    • setCurrentCloudMediaProviderAuthority

      public static void setCurrentCloudMediaProviderAuthority(String authority)
      Mutator method to set the value of the current cloud media provider authority.