NotificationManager.GetNotificationChannel Método

Definición

Sobrecargas

GetNotificationChannel(String, String)

Devuelve la configuración del canal de notificación para un canal determinado y ShortcutInfo#getId() conversation id.

GetNotificationChannel(String)

Devuelve la configuración del canal de notificación para un identificador de canal determinado.

GetNotificationChannel(String, String)

Devuelve la configuración del canal de notificación para un canal determinado y 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

Parámetros

channelId
String
conversationId
String

Devoluciones

Atributos

Comentarios

Devuelve la configuración del canal de notificación para un canal determinado y ShortcutInfo#getId() conversation id.

El canal debe pertenecer al paquete o a un paquete para el que sea delegado de notificación aprobado (vea #canNotifyAsPackage(String)) o no se devolverá. Para consultar un canal como delegado de notificación, llame a este método desde un contexto creado para ese paquete (vea Context#createPackageContext(String, int)).

Documentación de Java para android.app.NotificationManager.getNotificationChannel(java.lang.String, java.lang.String).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código y se usan según los términos descritos en la creative Commons 2.5.

Se aplica a

GetNotificationChannel(String)

Devuelve la configuración del canal de notificación para un identificador de canal determinado.

[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

Parámetros

channelId
String

Devoluciones

Atributos

Comentarios

Devuelve la configuración del canal de notificación para un identificador de canal determinado.

El canal debe pertenecer al paquete o a un paquete para el que sea delegado de notificación aprobado (vea #canNotifyAsPackage(String)) o no se devolverá. Para consultar un canal como delegado de notificación, llame a este método desde un contexto creado para ese paquete (vea Context#createPackageContext(String, int)).

Documentación de Java para android.app.NotificationManager.getNotificationChannel(java.lang.String).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código y se usan según los términos descritos en la creative Commons 2.5.

Se aplica a