VoiceInteractionSession.SetKeepAwake(Boolean) Method

Definition

Set whether this session will keep the device awake while it is running a voice activity.

[Android.Runtime.Register("setKeepAwake", "(Z)V", "GetSetKeepAwake_ZHandler", ApiSince=23)]
public virtual void SetKeepAwake (bool keepAwake);
[<Android.Runtime.Register("setKeepAwake", "(Z)V", "GetSetKeepAwake_ZHandler", ApiSince=23)>]
abstract member SetKeepAwake : bool -> unit
override this.SetKeepAwake : bool -> unit

Parameters

keepAwake
Boolean
Attributes

Remarks

Java documentation for android.service.voice.VoiceInteractionSession.setKeepAwake(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