Share via


Settings.ActionVoiceControlDoNotDisturbMode Field

Definition

Activity Action: Modify do not disturb mode settings.

[Android.Runtime.Register("ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE", ApiSince=23)]
public const string ActionVoiceControlDoNotDisturbMode;
[<Android.Runtime.Register("ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE", ApiSince=23)>]
val mutable ActionVoiceControlDoNotDisturbMode : string

Field Value

Attributes

Remarks

Activity Action: Modify do not disturb mode settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

This intent MUST be started using android.service.voice.VoiceInteractionSession#startVoiceActivity startVoiceActivity.

Note: The Activity implementing this intent MUST verify that android.app.Activity#isVoiceInteraction isVoiceInteraction. returns true before modifying the setting.

Input: The optional #EXTRA_DO_NOT_DISTURB_MODE_MINUTES extra can be used to indicate how long the user wishes to avoid interruptions for. The optional #EXTRA_DO_NOT_DISTURB_MODE_ENABLED extra can be to indicate if the user is enabling or disabling do not disturb mode. If either extra is not included, the user maybe asked to provide the value.

Output: Nothing.

Java documentation for android.provider.Settings.ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE.

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