NotificationManager.GetNotificationChannel Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
GetNotificationChannel(String, String) |
Devuelve la configuración del canal de notificación para un canal determinado y |
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)
).
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.