NotificationChannel.Importance Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne l’importance spécifiée par l’utilisateur e. -ou- Définit le niveau d’interruption de ce canal de notification.
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
Valeur de propriété
La valeur est l’une des valeurs suivantes : NotificationManager.IMPORTANCE_UNSPECIFIED NotificationManager.IMPORTANCE_NONE NotificationManager.IMPORTANCE_MIN NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_HIGH
- Attributs
Remarques
Retourne l’importance spécifiée par l’utilisateur, par exemple NotificationManager.IMPORTANCE_LOW pour les notifications publiées sur ce canal. Remarque : cette valeur peut être > NotificationManager.IMPORTANCE_NONE, mais les notifications publiées sur ce canal ne seront pas affichées à l’utilisateur si le parent NotificationChannelGroup ou l’application est bloqué. Voir NotificationChannelGroup.isBlocked() et NotificationManager.areNotificationsEnabled().
Référence Android pour android.app.NotificationChannel.getImportance.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.