NotificationManager.ActionAutomaticZenRule Field
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.
Activity Action: Launch an Automatic Zen Rule configuration screen Input: Optionally, EXTRA_AUTOMATIC_RULE_ID, if the configuration screen for an existing rule should be displayed.
[Android.Runtime.Register("ACTION_AUTOMATIC_ZEN_RULE", ApiSince=29)]
public const string ActionAutomaticZenRule;
[<Android.Runtime.Register("ACTION_AUTOMATIC_ZEN_RULE", ApiSince=29)>]
val mutable ActionAutomaticZenRule : string
Field Value
- Attributes
Remarks
Activity Action: Launch an Automatic Zen Rule configuration screen Input: Optionally, EXTRA_AUTOMATIC_RULE_ID, if the configuration screen for an existing rule should be displayed. If the rule id is missing or null, apps should display a configuration screen where users can create a new instance of the rule. Output: Nothing You can have multiple activities handling this intent, if you support multiple rules. In order for the system to properly display all of your rule types so that users can create new instances or configure existing ones, you need to add some extra metadata (META_DATA_AUTOMATIC_RULE_TYPE) to your activity tag in your manifest. If you'd like to limit the number of rules a user can create from this flow, you can additionally optionally include META_DATA_RULE_INSTANCE_LIMIT. For example,
See also:
Android reference for android.app.NotificationManager.ACTION_AUTOMATIC_ZEN_RULE.
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.