Aracılığıyla paylaş


VoiceInteractionService.CreateAlwaysOnHotwordDetector Method

Definition

Creates an AlwaysOnHotwordDetector for the given keyphrase and locale.

[Android.Runtime.Register("createAlwaysOnHotwordDetector", "(Ljava/lang/String;Ljava/util/Locale;Landroid/service/voice/AlwaysOnHotwordDetector$Callback;)Landroid/service/voice/AlwaysOnHotwordDetector;", "")]
public Android.Service.Voice.AlwaysOnHotwordDetector? CreateAlwaysOnHotwordDetector (string? keyphrase, Java.Util.Locale? locale, Android.Service.Voice.AlwaysOnHotwordDetector.Callback? callback);
[<Android.Runtime.Register("createAlwaysOnHotwordDetector", "(Ljava/lang/String;Ljava/util/Locale;Landroid/service/voice/AlwaysOnHotwordDetector$Callback;)Landroid/service/voice/AlwaysOnHotwordDetector;", "")>]
member this.CreateAlwaysOnHotwordDetector : string * Java.Util.Locale * Android.Service.Voice.AlwaysOnHotwordDetector.Callback -> Android.Service.Voice.AlwaysOnHotwordDetector

Parameters

keyphrase
String

The keyphrase that's being used, for example "Hello Android".

locale
Locale

The locale for which the enrollment needs to be performed.

callback
AlwaysOnHotwordDetector.Callback

The callback to notify of detection events.

Returns

Attributes

Remarks

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