Langue

NotificationManager.NotificationPolicy Propriété

Définition

Obtient la stratégie de notification par défaut spécifiée par l’utilisateur actuelle.

public virtual Android.App.NotificationManager.Policy? NotificationPolicy { [Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)] get; [Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)>]
member this.NotificationPolicy : Android.App.NotificationManager.Policy with get, set

Valeur de propriété

Attributs

Remarques

Obtient la stratégie de notification par défaut spécifiée par l’utilisateur actuelle. Pour les applications ciblant Build.VERSION_CODES. VANILLA_ICE_CREAM et versions ultérieures (avec certaines exceptions, telles que les gestionnaires d’appareils compagnons), cette méthode retourne la stratégie associée à leur AutomaticZenRule implicite, si elle existe. Voir setNotificationPolicy(Policy).

Référence Android pour android.app.NotificationManager.getNotificationPolicy.

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.

S’applique à