VoiceInteractionService.OnLaunchVoiceAssistFromKeyguard 方法

定义

当用户激活了从 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
属性

注解

当用户激活了从 Keyguard 启动语音辅助功能时调用。

仅当 VoiceInteractionService 已设置 android.R.attr#supportsLaunchVoiceAssistFromKeyguard 且 Keyguard 显示时,才会调用此方法。

有效的实现必须启动一个新活动,该活动应用于 android.view.WindowManager.LayoutParams#FLAG_SHOW_WHEN_LOCKED 在锁屏界面上显示。

适用于 . 的 android.service.voice.VoiceInteractionService.onLaunchVoiceAssistFromKeyguard()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于