VoiceInteractionService.OnLaunchVoiceAssistFromKeyguard Method

Definition

Called when a user has activated an affordance to launch voice assist from the Keyguard.

[Android.Runtime.Register("onLaunchVoiceAssistFromKeyguard", "()V", "GetOnLaunchVoiceAssistFromKeyguardHandler", ApiSince=23)]
public virtual void OnLaunchVoiceAssistFromKeyguard ();
[<Android.Runtime.Register("onLaunchVoiceAssistFromKeyguard", "()V", "GetOnLaunchVoiceAssistFromKeyguardHandler", ApiSince=23)>]
abstract member OnLaunchVoiceAssistFromKeyguard : unit -> unit
override this.OnLaunchVoiceAssistFromKeyguard : unit -> unit
Attributes

Remarks

Called when a user has activated an affordance to launch voice assist from the Keyguard.

This method will only be called if the VoiceInteractionService has set android.R.attr#supportsLaunchVoiceAssistFromKeyguard and the Keyguard is showing.

A valid implementation must start a new activity that should use android.view.WindowManager.LayoutParams#FLAG_SHOW_WHEN_LOCKED to display on top of the lock screen.

Java documentation for android.service.voice.VoiceInteractionService.onLaunchVoiceAssistFromKeyguard().

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