Språk

MediaStore.NotifyCloudMediaChangedEvent Method

Definition

Notifies the OS about a cloud media event requiring a full or incremental media collection sync for the currently enabled cloud provider, authority.

[Android.Runtime.Register("notifyCloudMediaChangedEvent", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=33)]
public static void NotifyCloudMediaChangedEvent(Android.Content.ContentResolver resolver, string authority, string currentMediaCollectionId);
[<Android.Runtime.Register("notifyCloudMediaChangedEvent", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=33)>]
static member NotifyCloudMediaChangedEvent : Android.Content.ContentResolver * string * string -> unit

Parameters

resolver
ContentResolver

The resolver used to send the cloud-media change notification to the media provider.

authority
String

The authority of the currently selected cloud-media provider making the notification.

currentMediaCollectionId
String

The caller's current media-collection ID, included in the change notification.

Attributes

Remarks

Notifies the OS about a cloud media event requiring a full or incremental media collection sync for the currently enabled cloud provider, authority.

The OS will schedule the sync in the background and will attempt to batch frequent notifications into a single sync event.

If the caller is not the currently enabled cloud provider as returned by #isCurrentCloudMediaProviderAuthority(ContentResolver, String), the request will be unsuccessful.

Java documentation for android.provider.MediaStore.notifyCloudMediaChangedEvent(android.content.ContentResolver, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to