public abstract static class AlwaysOnHotwordDetector.Callback extends Object
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
abstract void |
onAvailabilityChanged(int status)
Called when the hotword availability changes.
|
abstract void |
onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload)
Called when the keyphrase is spoken.
|
abstract void |
onError()
Called when the detection fails due to an error.
|
abstract void |
onRecognitionPaused()
Called when the recognition is paused temporarily for some reason.
|
abstract void |
onRecognitionResumed()
Called when the recognition is resumed after it was temporarily paused.
|
public abstract void onAvailabilityChanged(int status)
public abstract void onDetected(AlwaysOnHotwordDetector.EventPayload eventPayload)
eventPayload
- Payload data for the detection event.
This may contain the trigger audio, if requested when calling
AlwaysOnHotwordDetector.startRecognition(int)
.public abstract void onError()
public abstract void onRecognitionPaused()
public abstract void onRecognitionResumed()