ConditionProviderService.NotifyCondition(Condition) Méthode
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.
Informe le gestionnaire de notifications que l’état d’une condition a changé.
[Android.Runtime.Register("notifyCondition", "(Landroid/service/notification/Condition;)V", "", ApiSince=24)]
public void NotifyCondition(Android.Service.Notification.Condition? condition);
[<Android.Runtime.Register("notifyCondition", "(Landroid/service/notification/Condition;)V", "", ApiSince=24)>]
member this.NotifyCondition : Android.Service.Notification.Condition -> unit
Paramètres
- condition
- Condition
condition qui a changé.
- Attributs
Remarques
Informe le gestionnaire de notifications que l’état d’une condition a changé. Utilisez cette méthode pour placer le système en mode Ne pas déranger ou demander qu’il quitte le mode Ne pas déranger. Cet appel est ignoré, sauf s’il existe une propriété activée android.app.AutomaticZenRule par le service qui a une android.app.AutomaticZenRule#getConditionId() valeur égale à celle-ci Condition#id.
Ce membre est déconseillé. voir android.app.NotificationManager#setAutomaticZenRuleState(String, Condition).
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.