Skip to main content

Module answers

Module answers 

Source
Expand description

Android’s answers (PauseMode.java), as facts. Compiled everywhere: tested on a computer.

Structs§

Lets 🔒
What a mode lets through, as asked or as Android has it: who may call, who may write, a second call, the conversations marked priority (none: not said, Android 10 having none).

Constants§

ALLOW 🔒
ANYONE 🔒
ZenPolicy’s PEOPLE_TYPE_ANYONE, _CONTACTS, _STARRED, _NONE; STATE_ALLOW, STATE_DISALLOW; CONVERSATION_SENDERS_ANYONE, _IMPORTANT, _NONE.
CONTACTS 🔒
CONVERSATIONS_ANY 🔒
CONVERSATIONS_IMPORTANT 🔒
CONVERSATIONS_NONE 🔒
DISALLOW 🔒
NONE 🔒
STARRED 🔒

Functions§

can 🔒
can: {api, access, …}; callback, the number emergency services call back from in the person’s country, where one is known.
entered 🔒
enter: {api, access, too_old, error, rule: {name, calls, messages, repeat, alarms, conversations (Android 11 and later)}, doses, events, already, disabled, turned_off}; name, the mode’s name as Sioul gives it.
left 🔒
leave: {was, still}: whether Sioul’s mode was on; a do-not-disturb on before the pause, and still on.