VoiceInteractionSession.SetUiEnabled(Boolean) Method

Definition

Control whether the UI layer for this session is enabled.

[Android.Runtime.Register("setUiEnabled", "(Z)V", "GetSetUiEnabled_ZHandler", ApiSince=26)]
public virtual void SetUiEnabled (bool enabled);
[<Android.Runtime.Register("setUiEnabled", "(Z)V", "GetSetUiEnabled_ZHandler", ApiSince=26)>]
abstract member SetUiEnabled : bool -> unit
override this.SetUiEnabled : bool -> unit

Parameters

enabled
Boolean
Attributes

Remarks

Control whether the UI layer for this session is enabled. It is enabled by default. If set to false, you will not be able to provide a UI through #onCreateContentView().

Java documentation for android.service.voice.VoiceInteractionSession.setUiEnabled(boolean).

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