NotificationManager.GetNotificationChannel メソッド

定義

オーバーロード

GetNotificationChannel(String, String)

特定のチャネルと ShortcutInfo#getId() conversation idの通知チャネル設定を返します。

GetNotificationChannel(String)

指定されたチャネル ID の通知チャネル設定を返します。

GetNotificationChannel(String, String)

特定のチャネルと ShortcutInfo#getId() conversation 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
conversationId
String

戻り値

属性

注釈

特定のチャネルと ShortcutInfo#getId() conversation idの通知チャネル設定を返します。

チャネルは、パッケージに属している必要があります。または、承認された通知デリゲートであるパッケージに属している必要があります (「」を参照)。 #canNotifyAsPackage(String)または、返されません。 チャネルに通知デリゲートとしてクエリを実行するには、そのパッケージ用に作成されたコンテキストからこのメソッドを呼び出します (「」を参照)。Context#createPackageContext(String, int)

の Java ドキュメント android.app.NotificationManager.getNotificationChannel(java.lang.String, java.lang.String)

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

適用対象

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

戻り値

属性

注釈

指定されたチャネル ID の通知チャネル設定を返します。

チャネルは、パッケージに属している必要があります。または、承認された通知デリゲートであるパッケージに属している必要があります (「」を参照)。 #canNotifyAsPackage(String)または、返されません。 チャネルに通知デリゲートとしてクエリを実行するには、そのパッケージ用に作成されたコンテキストからこのメソッドを呼び出します (「」を参照)。Context#createPackageContext(String, int)

の Java ドキュメント android.app.NotificationManager.getNotificationChannel(java.lang.String)

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

適用対象