NotificationManager.GetAutomaticZenRuleState(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The id of the rule
Returns
the state of the rule.
- 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.
Java documentation for android.app.NotificationManager.getAutomaticZenRuleState(java.lang.String)
.
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.