PeopleContract.Directory.NotifyChange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the People Provider that specific records within a directory have changed, triggering a cache refresh and notifying observing client applications.
[Android.Runtime.Register("notifyChange", "(Landroid/content/Context;Landroid/net/Uri;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Z", "", ApiSince=37)]
public static bool NotifyChange(Android.Content.Context context, Android.Net.Uri uri, Android.OS.Bundle? queryArgs, Android.OS.CancellationSignal? cancellationSignal);
[<Android.Runtime.Register("notifyChange", "(Landroid/content/Context;Landroid/net/Uri;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Z", "", ApiSince=37)>]
static member NotifyChange : Android.Content.Context * Android.Net.Uri * Android.OS.Bundle * Android.OS.CancellationSignal -> bool
Parameters
- context
- Context
The Context used to access the ContentResolver.
- uri
- Uri
The URI corresponding to the modified data (for example, Persons#CONTENT_URI or Groups#CONTENT_URI).
- queryArgs
- Bundle
A query arguments Bundle constructed using Persons.Query.Builder or Groups.Query.Builder containing selection criteria
that match the modified data records.
- cancellationSignal
- CancellationSignal
An optional CancellationSignal to cancel the refresh
operation, or null.
Returns
true if the change notification was sent and refresh initiated, false if the calling package is not a registered People Directory or if the query
arguments were null or empty.
- Attributes