Language

Context.RemoveStickyBroadcastAsUser(Intent, UserHandle) メソッド

定義

注意事項

deprecated

ブロードキャストの送信先ユーザーを指定できる #removeStickyBroadcast(Intent) のバージョン。

[Android.Runtime.Register("removeStickyBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetRemoveStickyBroadcastAsUser_Landroid_content_Intent_Landroid_os_UserHandle_Handler")]
[System.Obsolete("deprecated")]
public abstract void RemoveStickyBroadcastAsUser(Android.Content.Intent? intent, Android.OS.UserHandle? user);
[<Android.Runtime.Register("removeStickyBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetRemoveStickyBroadcastAsUser_Landroid_content_Intent_Landroid_os_UserHandle_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member RemoveStickyBroadcastAsUser : Android.Content.Intent * Android.OS.UserHandle -> unit

パラメーター

intent
Intent

以前にブロードキャストされた意図。

user
UserHandle

固定ブロードキャストを削除する UserHandle。

属性

注釈

ブロードキャストの送信先ユーザーを指定できる #removeStickyBroadcast(Intent) のバージョン。 これは、システム イメージにプレインストールされていないアプリケーションでは使用できません。

この API を使用するには、 android.Manifest.permission#BROADCAST_STICKY アクセス許可を保持する必要があります。 そのアクセス許可を保持していない場合は、 SecurityException がスローされます。

このメンバーは非推奨です。 固定ブロードキャストは使用しないでください。 セキュリティ (誰でもアクセスできる)、保護 (誰でも変更できる)、その他多くの問題を提供しません。 推奨されるパターンは、非固定ブロードキャストを使用して、 <em>something</em> が変更されたことを報告し、必要に応じてアプリが現在の値を取得するための別のメカニズムを使用することです。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

関連項目

  • <xref:Android.Content.Context.SendStickyBroadcastAsUser(Android.Content.Intent%2c+Android.OS.UserHandle)>