Partager via


VoiceInteractionService.CreateAlwaysOnHotwordDetector Méthode

Définition

Crée une AlwaysOnHotwordDetector clé pour la clé et les paramètres régionaux donnés.

[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

Paramètres

keyphrase
String

Keyphrase utilisée, par exemple « Hello Android ».

locale
Locale

Paramètres régionaux pour lesquels l’inscription doit être effectuée.

callback
AlwaysOnHotwordDetector.Callback

Rappel pour notifier les événements de détection.

Retours

Attributs

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à