AutomaticZenRuleType Enum
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.
Classifies the purpose or trigger of an automatic Zen rule.
public enum AutomaticZenRuleType
type AutomaticZenRuleType =
- Inheritance
-
AutomaticZenRuleType
Fields
| Name | Value | Description |
|---|---|---|
| Unknown | -1 | Rule is of an unknown type. This is the default value if not provided by the owning app. Android reference for 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. |
| Other | 0 | Rule is of a known type, but not one of the specific types. |
| ScheduleTime | 1 | The type for rules triggered according to a time-based schedule. |
| ScheduleCalendar | 2 | The type for rules triggered by calendar events. |
| Bedtime | 3 | The type for rules triggered by bedtime/sleeping, like time of day, or snore detection. On Android 15 and later, callers other than the system or System UI must be the configured Wellbeing app to add or update this type of rule. Android reference for 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. |
| Driving | 4 | The type for rules triggered by driving detection, like Bluetooth connections or vehicle sounds. |
| Immersive | 5 | The type for rules triggered by the user entering an immersive activity, like opening an app using Hide(Int32). Android reference for 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. |
| Theater | 6 | The type for rules that have a ZenPolicy that implies that the device should not make sound and potentially hide some visual effects; may be triggered when entering a location where silence is requested, like a theater. |
| Managed | 7 | The type for rules created and managed by a device owner. These rules may not be fully editable by the device user. On Android 15 and later, callers other than the system or System UI must be a device owner to add or update this type of rule. Android reference for 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. |
| Transit | 8 | The type for rules triggered during the user's transiting, in public transportation such as trains and subways, etc. Android reference for 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. |
Remarks
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.