enableDoNotDisturbMode

abstract suspend fun enableDoNotDisturbMode(vpaIdentifier: VpaIdentifier, enable: Boolean)

Asks a VPA to enable or disable "Do Not Disturb" mode. When "Do Not Disturb" mode is enabled, the device will not receive VPA notifications but will still allow both alerts (such as alarms and timers) and user-initiated VPA responses to be played.

Parameters

vpaIdentifier

The VPA whose "Do Not Disturb" mode should be updated. This is the identifier given by the VPA in VpaProperties.vpaIdentifier.

enable

true if "Do Not Disturb" mode should be enabled, false otherwise.