AutomaticZenRuleType Enum

Definition

public enum AutomaticZenRuleType
type AutomaticZenRuleType = 
Inheritance
AutomaticZenRuleType

Fields

Name Value Description
Unknown -1

Rule is of an unknown type.

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.

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 WindowInsetsController.hide(int).

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.

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.

Applies to