VoiceInteractionService.OnLaunchVoiceAssistFromKeyguard Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.