Bagikan melalui


Activity.IsVoiceInteractionRoot Property

Definition

Like #isVoiceInteraction, but only returns true if this is also the root of a voice interaction.

public virtual bool IsVoiceInteractionRoot { [Android.Runtime.Register("isVoiceInteractionRoot", "()Z", "GetIsVoiceInteractionRootHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isVoiceInteractionRoot", "()Z", "GetIsVoiceInteractionRootHandler", ApiSince=23)>]
member this.IsVoiceInteractionRoot : bool

Property Value

Attributes

Remarks

Like #isVoiceInteraction, but only returns true if this is also the root of a voice interaction. That is, returns true if this activity was directly started by the voice interaction service as the initiation of a voice interaction. Otherwise, for example if it was started by another activity while under voice interaction, returns false. If the activity android.R.styleable#AndroidManifestActivity_launchMode launchMode is singleTask, it forces the activity to launch in a new task, separate from the one that started it. Therefore, there is no longer a relationship between them, and #isVoiceInteractionRoot() return false in this case.

Java documentation for android.app.Activity.isVoiceInteractionRoot().

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