NotificationManager.GetAutomaticZenRuleState(String) Method

Definition

Returns the current activation state of an AutomaticZenRule.

[Android.Runtime.Register("getAutomaticZenRuleState", "(Ljava/lang/String;)I", "GetGetAutomaticZenRuleState_Ljava_lang_String_Handler", ApiSince=35)]
public virtual Android.Service.Notification.ConditionState GetAutomaticZenRuleState(string id);
[<Android.Runtime.Register("getAutomaticZenRuleState", "(Ljava/lang/String;)I", "GetGetAutomaticZenRuleState_Ljava_lang_String_Handler", ApiSince=35)>]
abstract member GetAutomaticZenRuleState : string -> Android.Service.Notification.ConditionState
override this.GetAutomaticZenRuleState : string -> Android.Service.Notification.ConditionState

Parameters

id
String

String: The id of the rule. This value cannot be null.

Returns

the state of the rule. Value is one of the following: Condition.STATE_FALSE Condition.STATE_TRUE Condition.STATE_UNKNOWN Condition.STATE_ERROR

Attributes

Remarks

Returns the current activation state of an AutomaticZenRule. Returns Condition.STATE_UNKNOWN if the rule does not exist or the calling package doesn't have access to it.

Android reference for android.app.NotificationManager.getAutomaticZenRuleState.

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