Compartilhar via


NotificationManager.AreAutomaticZenRulesUserManaged Method

Definition

Returns true if users can independently and fully manage AutomaticZenRule rules.

[Android.Runtime.Register("areAutomaticZenRulesUserManaged", "()Z", "GetAreAutomaticZenRulesUserManagedHandler", ApiSince=35)]
public virtual bool AreAutomaticZenRulesUserManaged ();
[<Android.Runtime.Register("areAutomaticZenRulesUserManaged", "()Z", "GetAreAutomaticZenRulesUserManagedHandler", ApiSince=35)>]
abstract member AreAutomaticZenRulesUserManaged : unit -> bool
override this.AreAutomaticZenRulesUserManaged : unit -> bool

Returns

Attributes

Remarks

Returns true if users can independently and fully manage AutomaticZenRule rules. This includes the ability to independently activate/deactivate rules and overwrite/freeze the behavior (policy) of the rule when activated.

If this method returns true, calls to #updateAutomaticZenRule(String, AutomaticZenRule) may fail and apps should defer rule management to system settings/uis via Settings#ACTION_AUTOMATIC_ZEN_RULE_SETTINGS.

Java documentation for android.app.NotificationManager.areAutomaticZenRulesUserManaged().

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