Share via


Settings.ActionVoiceControlBatterySaverMode Field

Definition

Activity Action: Modify Battery Saver mode setting using a voice command.

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

Field Value

Attributes

Remarks

Activity Action: Modify Battery Saver mode setting using a voice command.

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: To tell which state batter saver mode should be set to, add the #EXTRA_BATTERY_SAVER_MODE_ENABLED extra to this Intent with the state specified. If the extra is not included, no changes will be made.

Output: Nothing.

Java documentation for android.provider.Settings.ACTION_VOICE_CONTROL_BATTERY_SAVER_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