Udostępnij za pośrednictwem


NotificationManager.ExtraAutomaticZenRuleStatus Field

Definition

Integer extra for #ACTION_AUTOMATIC_ZEN_RULE_STATUS_CHANGED containing the state of the AutomaticZenRule.

[Android.Runtime.Register("EXTRA_AUTOMATIC_ZEN_RULE_STATUS", ApiSince=30)]
public const string ExtraAutomaticZenRuleStatus;
[<Android.Runtime.Register("EXTRA_AUTOMATIC_ZEN_RULE_STATUS", ApiSince=30)>]
val mutable ExtraAutomaticZenRuleStatus : string

Field Value

Attributes

Remarks

Integer extra for #ACTION_AUTOMATIC_ZEN_RULE_STATUS_CHANGED containing the state of the AutomaticZenRule.

The value will be one of #AUTOMATIC_RULE_STATUS_ENABLED, #AUTOMATIC_RULE_STATUS_DISABLED, #AUTOMATIC_RULE_STATUS_REMOVED, #AUTOMATIC_RULE_STATUS_ACTIVATED, #AUTOMATIC_RULE_STATUS_DEACTIVATED, or #AUTOMATIC_RULE_STATUS_UNKNOWN.

Note that the #AUTOMATIC_RULE_STATUS_ACTIVATED and #AUTOMATIC_RULE_STATUS_DEACTIVATED statuses are only sent to packages targeting Build.VERSION_CODES#VANILLA_ICE_CREAM and above; apps targeting a lower SDK version will be sent #AUTOMATIC_RULE_STATUS_UNKNOWN in their place instead.

Java documentation for android.app.NotificationManager.EXTRA_AUTOMATIC_ZEN_RULE_STATUS.

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