AlwaysOnHotwordDetector.StopRecognition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stops recognition for the associated keyphrase.
[Android.Runtime.Register("stopRecognition", "()Z", "GetStopRecognitionHandler")]
public virtual bool StopRecognition ();
[<Android.Runtime.Register("stopRecognition", "()Z", "GetStopRecognitionHandler")>]
abstract member StopRecognition : unit -> bool
override this.StopRecognition : unit -> bool
Returns
Indicates whether the call succeeded or not.
- Attributes
Exceptions
if the recognition isn't supported. Callers should only call this method after a supported state callback on AlwaysOnHotwordDetector Callback onAvailabilityChanged(int) to avoid this exception.
if the detector is in an invalid state. This may happen if another detector has been instantiated or the VoiceInteractionService hosting this detector has been shut down.
Remarks
Stops recognition for the associated keyphrase. Caller must be the active voice interaction service via Settings.Secure.VOICE_INTERACTION_SERVICE.
Java documentation for android.service.voice.AlwaysOnHotwordDetector.stopRecognition()
.
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.