Lenguaje

NotificationChannel.Importance Propiedad

Definición

Devuelve la importancia especificada por el usuario e. -o bien- Establece el nivel de interrupción de este canal de notificación.

public Android.App.NotificationImportance Importance { [Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)>]
member this.Importance : Android.App.NotificationImportance with get, set

Valor de propiedad

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

Devuelve la importancia especificada por el usuario, por ejemplo, NotificationManager.IMPORTANCE_LOW para las notificaciones publicadas en este canal. Nota: Este valor puede ser > NotificationManager.IMPORTANCE_NONE, pero las notificaciones publicadas en este canal no se mostrarán al usuario si el elemento primario NotificationChannelGroup o la aplicación están bloqueados. Consulte NotificationChannelGroup.isBlocked() y NotificationManager.areNotificationsEnabled().

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

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