public abstract static class SoundTriggerDetector.Callback extends Object
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
abstract void |
onAvailabilityChanged(int status)
Called when the availability of the sound model changes.
|
abstract void |
onDetected(SoundTriggerDetector.EventPayload eventPayload)
Called when the sound model has triggered (such as when it matched a
given sound pattern).
|
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(SoundTriggerDetector.EventPayload eventPayload)
public abstract void onError()
public abstract void onRecognitionPaused()
public abstract void onRecognitionResumed()