AlwaysOnHotwordDetector.Callback.OnAvailabilityChanged Method

Definition

Updates the availability state of the active keyphrase and locale on every keyphrase sound model change.

[Android.Runtime.Register("onAvailabilityChanged", "(I)V", "GetOnAvailabilityChanged_IHandler")]
public abstract void OnAvailabilityChanged (Android.Service.Voice.HotwordDetectorState status);
[<Android.Runtime.Register("onAvailabilityChanged", "(I)V", "GetOnAvailabilityChanged_IHandler")>]
abstract member OnAvailabilityChanged : Android.Service.Voice.HotwordDetectorState -> unit

Parameters

Attributes

Remarks

Updates the availability state of the active keyphrase and locale on every keyphrase sound model change.

This API is called whenever there's a possibility that the keyphrase associated with this detector has been updated. It is not guaranteed that there is in fact any change, as it may be called for other reasons.

This API is also guaranteed to be called right after an AlwaysOnHotwordDetector instance is created to updated the current availability state.

Availability implies the current enrollment state of the given keyphrase. If the hardware on this system is not capable of listening for the given keyphrase, AlwaysOnHotwordDetector#STATE_HARDWARE_UNAVAILABLE will be returned.

Java documentation for android.service.voice.AlwaysOnHotwordDetector.Callback.onAvailabilityChanged(int).

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