다음을 통해 공유


ICursor.SetNotificationUri(ContentResolver, Uri) Method

Definition

Register to watch a content URI for changes.

[Android.Runtime.Register("setNotificationUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "GetSetNotificationUri_Landroid_content_ContentResolver_Landroid_net_Uri_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNotificationUri (Android.Content.ContentResolver? cr, Android.Net.Uri? uri);
[<Android.Runtime.Register("setNotificationUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "GetSetNotificationUri_Landroid_content_ContentResolver_Landroid_net_Uri_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNotificationUri : Android.Content.ContentResolver * Android.Net.Uri -> unit

Parameters

cr
ContentResolver

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

uri
Uri

The content URI to watch.

Attributes

Remarks

Register to watch a content URI for changes. This can be the URI of a specific data row (for example, "content://my_provider_type/23"), or a a generic URI for a content type.

Calling this overrides any previous call to #setNotificationUris(ContentResolver, List).

Java documentation for android.database.Cursor.setNotificationUri(android.content.ContentResolver, android.net.Uri).

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