Lenguaje

NotificationChannel Constructores

Definición

Sobrecargas

Nombre Description
NotificationChannel(String, ICharSequence, NotificationImportance)

Crea un canal de notificación.

NotificationChannel(String, String, NotificationImportance)

Crea un canal de notificación.

NotificationChannel(String, ICharSequence, NotificationImportance)

Crea un canal de notificación.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)]
public NotificationChannel(string? id, Java.Lang.ICharSequence? name, Android.App.NotificationImportance importance);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)>]
new Android.App.NotificationChannel : string * Java.Lang.ICharSequence * Android.App.NotificationImportance -> Android.App.NotificationChannel

Parámetros

id
String

Identificador del canal. Debe ser único por paquete. El valor se puede truncar si es demasiado largo.

name
ICharSequence

Nombre visible del usuario del canal. Puede cambiar el nombre de este canal cuando cambie la configuración regional del sistema escuchando la Intent#ACTION_LOCALE_CHANGED difusión. La longitud máxima recomendada es de 40 caracteres; El valor se puede truncar si es demasiado largo.

importance
NotificationImportance

La importancia del canal. Esto controla cómo se publican las notificaciones interruptivas en este canal.

Atributos

Comentarios

Crea un canal de notificación.

Referencia de Android para android.app.NotificationChannel.NotificationChannel.

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

NotificationChannel(String, String, NotificationImportance)

Crea un canal de notificación.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)]
public NotificationChannel(string? id, string? name, Android.App.NotificationImportance importance);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)>]
new Android.App.NotificationChannel : string * string * Android.App.NotificationImportance -> Android.App.NotificationChannel

Parámetros

id
String

String: el identificador del canal. Debe ser único por paquete. El valor se puede truncar si es demasiado largo.

name
String

CharSequence: nombre visible del usuario del canal. Puede cambiar el nombre de este canal cuando cambie la configuración regional del sistema escuchando la difusión de Intent.ACTION_LOCALE_CHANGED. La longitud máxima recomendada es de 40 caracteres; El valor se puede truncar si es demasiado largo.

importance
NotificationImportance

int: importancia del canal. Esto controla cómo se publican las notificaciones interruptivas en este canal. El valor es uno de los siguientes: NotificationManager.IMPORTANCE_UNSPECIFIED NotificationManager.IMPORTANCE_NONE NotificationManager.IMPORTANCE_MIN NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_HIGH

Atributos

Comentarios

Crea un canal de notificación.

Referencia de Android para android.app.NotificationChannel.NotificationChannel.

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