Android.Service.Voice.AlwaysOnHotwordDetector.CreateEnrollIntent Method
Creates an intent to start the enrollment for the associated keyphrase.

Syntax

[Android.Runtime.Register("createEnrollIntent", "()Landroid/content/Intent;", "GetCreateEnrollIntentHandler")]
public virtual Android.Content.Intent CreateEnrollIntent ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif managing they keyphrase isn't supported. Callers should only call this method after a supported state callback on NoType:android/service/voice/AlwaysOnHotwordDetector$Callback;Href=../../../../reference/android/service/voice/AlwaysOnHotwordDetector.Callback.html#onAvailabilityChanged(int) to avoid this exception.
Java.Lang.IllegalStateExceptionif the detector is in an invalid state. This may happen if another detector has been instantiated or the Android.Service.Voice.VoiceInteractionService hosting this detector has been shut down.

Remarks

Creates an intent to start the enrollment for the associated keyphrase. This intent must be invoked using Android.App.Activity.StartActivityForResult(Android.Content.Intent, System.Int32). Starting re-enrollment is only valid if the keyphrase is un-enrolled, i.e. AlwaysOnHotwordDetector.STATE_KEYPHRASE_UNENROLLED, otherwise AlwaysOnHotwordDetector.CreateReEnrollIntent should be preferred.

[Android Documentation]

Requirements

Namespace: Android.Service.Voice
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0