Share via


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 する必要がある新しいアクティビティを開始する必要があります。

の Java ドキュメント android.service.voice.VoiceInteractionService.onLaunchVoiceAssistFromKeyguard()

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象