Package org.robolectric.shadows
Class ShadowMediaStore
java.lang.Object
org.robolectric.shadows.ShadowMediaStore
Shadow for
MediaStore.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent info forMediaStore.notifyCloudMediaChangedEvent(android.content.ContentResolver, java.lang.String, java.lang.String)notify events.static classShadow forMediaStore.Images.static classShadow forMediaStore.Video. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSupportedCloudMediaProviderAuthorities(List<String> authorities) Mutator method to add the inputauthoritiesto the list of supported cloud media provider authorities.static voidstatic voidMutator method to clear the list of supported cloud media provider authorities.static com.google.common.collect.ImmutableList<ShadowMediaStore.CloudMediaChangedEvent>Returns anImmutableListof allShadowMediaStore.CloudMediaChangedEventobjects thatMediaStorehas been notified of.protected static booleanisCurrentCloudMediaProviderAuthority(ContentResolver resolver, String authority) protected static booleanisSupportedCloudMediaProviderAuthority(ContentResolver resolver, String authority) protected static voidnotifyCloudMediaChangedEvent(ContentResolver resolver, String authority, String currentMediaCollectionId) static voidreset()static voidsetCurrentCloudMediaProviderAuthority(String authority) Mutator method to set the value of the current cloud media provider authority.static voidsetStubBitmapForThumbnails(Bitmap bitmap)
-
Constructor Details
-
ShadowMediaStore
public ShadowMediaStore()
-
-
Method Details
-
reset
-
setStubBitmapForThumbnails
-
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 anImmutableListof allShadowMediaStore.CloudMediaChangedEventobjects thatMediaStorehas been notified of. -
clearCloudMediaChangedEventList
public static void clearCloudMediaChangedEventList() -
isSupportedCloudMediaProviderAuthority
@Implementation(minSdk=33) protected static boolean isSupportedCloudMediaProviderAuthority(ContentResolver resolver, String authority) -
addSupportedCloudMediaProviderAuthorities
Mutator method to add the inputauthoritiesto 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
Mutator method to set the value of the current cloud media provider authority.
-