Language

PeopleContract.Directory.NotifyChange メソッド

定義

ディレクトリ内の特定のレコードが変更されたことを People プロバイダーに通知し、キャッシュの更新をトリガーし、監視しているクライアント アプリケーションに通知します。

[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

パラメーター

context
Context

ContentResolverへのアクセスに使用されるContext。

uri
Uri

変更されたデータに対応する URI ( Persons#CONTENT_URI や Groups#CONTENT_URIなど)。

queryArgs
Bundle

クエリ引数 Bundle 、変更されたデータ レコードに一致する選択条件を含む Persons.Query.Builder または Groups.Query.Builder を使用して構築されます。

cancellationSignal
CancellationSignal

更新操作を取り消す省略可能な CancellationSignal 、または null。

戻り値

true 変更通知が送信され、更新が開始された場合は、呼び出し元のパッケージが登録済みの People Directory ではない場合、またはクエリ引数が null または空の場合に false します。

属性

適用対象