NotificationManager.Notify メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| Notify(Int32, Notification) |
ステータス バーに表示される通知を投稿します。 |
| Notify(String, Int32, Notification) |
ステータス バーに表示される通知を投稿します。 |
Notify(Int32, Notification)
ステータス バーに表示される通知を投稿します。
[Android.Runtime.Register("notify", "(ILandroid/app/Notification;)V", "GetNotify_ILandroid_app_Notification_Handler")]
public virtual void Notify(int id, Android.App.Notification? notification);
[<Android.Runtime.Register("notify", "(ILandroid/app/Notification;)V", "GetNotify_ILandroid_app_Notification_Handler")>]
override this.Notify : int * Android.App.Notification -> unit
パラメーター
- id
- Int32
int: アプリケーション内で一意のこの通知の識別子。
- notification
- Notification
通知: ユーザーに表示する内容を説明する Notification オブジェクト。 null にすることはできません。
- 属性
注釈
ステータス バーに表示される通知を投稿します。 同じ ID の通知が既にアプリケーションによって投稿されており、まだ取り消されていない場合は、更新された情報に置き換えられます。
android.app.NotificationManager.notifyの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
Notify(String, Int32, Notification)
ステータス バーに表示される通知を投稿します。
[Android.Runtime.Register("notify", "(Ljava/lang/String;ILandroid/app/Notification;)V", "GetNotify_Ljava_lang_String_ILandroid_app_Notification_Handler")]
public virtual void Notify(string? tag, int id, Android.App.Notification? notification);
[<Android.Runtime.Register("notify", "(Ljava/lang/String;ILandroid/app/Notification;)V", "GetNotify_Ljava_lang_String_ILandroid_app_Notification_Handler")>]
override this.Notify : string * int * Android.App.Notification -> unit
パラメーター
- tag
- String
文字列: この通知の文字列識別子。 null を指定できます。
- id
- Int32
int: この通知の識別子。 ペア (タグ、ID) は、アプリケーション内で一意である必要があります。
- notification
- Notification
通知: ユーザーに表示する内容を説明する Notification オブジェクト。 null にすることはできません。
- 属性
注釈
ステータス バーに表示される通知を投稿します。 同じタグと ID を持つ通知が既にアプリケーションによって投稿されており、まだ取り消されていない場合は、更新された情報に置き換えられます。 すべてのリスナー サービスは、この通知で提供されるすべての URI へのアクセスIntent.FLAG_GRANT_READ_URI_PERMISSION許可されるか、この通知が Context.grantUriPermission(String,Uri,int) を使用して通知チャネルにポストされます。 通知が取り消されるとアクセス許可が取り消されるか、Context.revokeUriPermission(Uri,int) を使用してアクセス許可を取り消すことができます。
android.app.NotificationManager.notifyの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。