Megosztás a következőn keresztül:


Settings.ActionVoiceControlAirplaneMode Field

Definition

Activity Action: Modify Airplane mode settings using a voice command.

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

Field Value

Attributes

Remarks

Activity Action: Modify Airplane mode settings 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 airplane mode should be set to, add the #EXTRA_AIRPLANE_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_AIRPLANE_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