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
| Nombre | Description |
|---|---|
| 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 un identificador de conversación. |
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
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 un 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)).
Referencia de Android para android.app.NotificationManager.getNotificationChannel.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.
Se aplica a
GetNotificationChannel(String, String)
Devuelve la configuración del canal de notificación para un canal determinado y un identificador de conversación.
[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
String: este valor no puede ser NULL.
- conversationId
- String
String: este valor no puede ser NULL.
Devoluciones
- Atributos
Comentarios
Devuelve la configuración del canal de notificación para un canal determinado y un identificador de conversación. El canal debe pertenecer al paquete o a un paquete para el que sea un 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)).
Si no se encuentra un canal de conversación con el identificador de conversación especificado, este método devolverá en su lugar el canal primario con el identificador de canal especificado o null si no existe ninguno.
Referencia de Android para android.app.NotificationManager.getNotificationChannel.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.