NotificationManager.GetNotificationChannel Metodo

Definizione

Overload

Nome Descrizione
GetNotificationChannel(String)

Restituisce le impostazioni del canale di notifica per un ID canale specificato.

GetNotificationChannel(String, String)

Restituisce le impostazioni del canale di notifica per un determinato canale e ShortcutInfo#getId() conversation id.

GetNotificationChannel(String)

Restituisce le impostazioni del canale di notifica per un ID canale specificato.

[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

Parametri

channelId
String

Valori restituiti

Attributi

Commenti

Restituisce le impostazioni del canale di notifica per un ID canale specificato.

Il canale deve appartenere al pacchetto o a un pacchetto per il quale si è approvato un delegato di notifica (vedere #canNotifyAsPackage(String)) oppure non verrà restituito. Per eseguire query su un canale come delegato di notifica, chiamare questo metodo da un contesto creato per tale pacchetto (vedere Context#createPackageContext(String, int)).

per android.app.NotificationManager.getNotificationChannel(java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

GetNotificationChannel(String, String)

Restituisce le impostazioni del canale di notifica per un determinato canale e 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

Parametri

channelId
String
conversationId
String

Valori restituiti

Attributi

Commenti

Restituisce le impostazioni del canale di notifica per un determinato canale e ShortcutInfo#getId() conversation id.

Il canale deve appartenere al pacchetto o a un pacchetto per il quale si è approvato un delegato di notifica (vedere #canNotifyAsPackage(String)) oppure non verrà restituito. Per eseguire query su un canale come delegato di notifica, chiamare questo metodo da un contesto creato per tale pacchetto (vedere Context#createPackageContext(String, int)).

Se non viene trovato un canale di conversazione con l'ID conversazione specificato, questo metodo restituirà invece il canale padre con l'ID canale specificato o null se non esiste nessuno dei due.

per android.app.NotificationManager.getNotificationChannel(java.lang.String, java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a