NotificationManager.GetNotificationChannel メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetNotificationChannel(String) |
指定されたチャネル ID の通知チャネル設定を返します。 |
| GetNotificationChannel(String, String) |
特定のチャネルと会話 ID の通知チャネル設定を返します。 |
GetNotificationChannel(String)
指定されたチャネル ID の通知チャネル設定を返します。
[Android.Runtime.Register("getNotificationChannel", "(Ljava/lang/String;)Landroid/app/NotificationChannel;", "GetGetNotificationChannel_Ljava_lang_String_Handler", ApiSince=26)]
public virtual Android.App.NotificationChannel? GetNotificationChannel(string? channelId);
[<Android.Runtime.Register("getNotificationChannel", "(Ljava/lang/String;)Landroid/app/NotificationChannel;", "GetGetNotificationChannel_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member GetNotificationChannel : string -> Android.App.NotificationChannel
override this.GetNotificationChannel : string -> Android.App.NotificationChannel
パラメーター
- channelId
- String
String
返品
- 属性
注釈
指定されたチャネル ID の通知チャネル設定を返します。チャネルは、パッケージに属しているか、承認された通知デリゲートであるパッケージに属している必要があります (canNotifyAsPackage(String) を参照)、または返されません。 チャネルに通知デリゲートとしてクエリを実行するには、そのパッケージ用に作成されたコンテキストからこのメソッドを呼び出します (Context.createPackageContext(String,int) を参照してください)。
android.app.NotificationManager.getNotificationChannelの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
GetNotificationChannel(String, String)
特定のチャネルと会話 ID の通知チャネル設定を返します。
[Android.Runtime.Register("getNotificationChannel", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/NotificationChannel;", "GetGetNotificationChannel_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)]
public virtual Android.App.NotificationChannel? GetNotificationChannel(string channelId, string conversationId);
[<Android.Runtime.Register("getNotificationChannel", "(Ljava/lang/String;Ljava/lang/String;)Landroid/app/NotificationChannel;", "GetGetNotificationChannel_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member GetNotificationChannel : string * string -> Android.App.NotificationChannel
override this.GetNotificationChannel : string * string -> Android.App.NotificationChannel
パラメーター
- channelId
- String
文字列: この値を null にすることはできません。
- conversationId
- String
文字列: この値を null にすることはできません。
返品
- 属性
注釈
特定のチャネルと会話 ID の通知チャネル設定を返します。チャネルは、パッケージに属しているか、承認された通知デリゲートであるパッケージに属している必要があります (canNotifyAsPackage(String) を参照)、または返されません。 チャネルに通知デリゲートとしてクエリを実行するには、そのパッケージ用に作成されたコンテキストからこのメソッドを呼び出します (Context.createPackageContext(String,int) を参照してください)。
指定されたメッセージ交換 ID を持つ会話チャネルが見つからない場合、このメソッドは代わりに、指定されたチャネル ID を持つ親チャネルを返し、どちらも存在しない場合は null を返します。
android.app.NotificationManager.getNotificationChannelの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。