Język

AlwaysOnHotwordDetector.Callback.OnError Method

Definition

Called when hotword detection fails because of an error.

[Android.Runtime.Register("onError", "()V", "GetOnErrorHandler")]
public abstract void OnError();
[<Android.Runtime.Register("onError", "()V", "GetOnErrorHandler")>]
abstract member OnError : unit -> unit
Attributes

Remarks

Called when hotword detection fails because of an error.

This member is deprecated. On android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE and above, implement HotwordDetector.Callback#onFailure(HotwordDetectionServiceFailure), AlwaysOnHotwordDetector.Callback#onFailure(SoundTriggerFailure), HotwordDetector.Callback#onUnknownFailure(String) instead.

Java documentation for android.service.voice.AlwaysOnHotwordDetector.Callback.onError().

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