Språk

CursorWrapper.SetNotificationUris(ContentResolver, IList<Uri>) Method

Definition

Similar to SetNotificationUri(ContentResolver, Uri), except this version allows watching multiple content URIs for changes.

[Android.Runtime.Register("setNotificationUris", "(Landroid/content/ContentResolver;Ljava/util/List;)V", "GetSetNotificationUris_Landroid_content_ContentResolver_Ljava_util_List_Handler", ApiSince=29)]
public virtual void SetNotificationUris(Android.Content.ContentResolver? cr, System.Collections.Generic.IList<Android.Net.Uri>? uris);
[<Android.Runtime.Register("setNotificationUris", "(Landroid/content/ContentResolver;Ljava/util/List;)V", "GetSetNotificationUris_Landroid_content_ContentResolver_Ljava_util_List_Handler", ApiSince=29)>]
abstract member SetNotificationUris : Android.Content.ContentResolver * System.Collections.Generic.IList<Android.Net.Uri> -> unit
override this.SetNotificationUris : Android.Content.ContentResolver * System.Collections.Generic.IList<Android.Net.Uri> -> unit

Parameters

cr
ContentResolver

The content resolver from the caller's context. The listener attached to this resolver will be notified. This value cannot be null.

uris
IList<Uri>

The content URIs to watch. This value cannot be null.

Attributes

Remarks

Similar to SetNotificationUri(ContentResolver, Uri), except this version allows watching multiple content URIs for changes.

If the wrapped cursor uses the default implementation, it calls its SetNotificationUri(ContentResolver, Uri) method with the first URI in uris.

Calling this overrides any previous call to SetNotificationUri(ContentResolver, Uri).

Android reference for android.database.CursorWrapper.setNotificationUris.

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