ConditionProviderService.NotifyCondition(Condition) Method

Definition

Informs the notification manager that the state of a Condition has changed.

[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

Parameters

condition
Condition

the condition that has changed.

Attributes

Remarks

Informs the notification manager that the state of a Condition has changed. Use this method to put the system into Do Not Disturb mode or request that it exits Do Not Disturb mode. This call will be ignored unless there is an enabled android.app.AutomaticZenRule owned by service that has an android.app.AutomaticZenRule#getConditionId() equal to this Condition#id.

This member is deprecated. see android.app.NotificationManager#setAutomaticZenRuleState(String, Condition).

Java documentation for android.service.notification.ConditionProviderService.notifyCondition(android.service.notification.Condition).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to