TriggerCallback

interface TriggerCallback

Functions

Link copied to clipboard
abstract fun onTriggerDetected(wakeupInfo: WakeupInfo?): Boolean

Called when keyword detected

Link copied to clipboard
abstract fun onTriggerError(errorType: KeywordDetector.DetectorResultObserver.ErrorType)

Called when occur error

Link copied to clipboard
abstract fun onTriggerStarted(inputStream: SharedDataStream, format: AudioFormat)

Called when triggered

Link copied to clipboard
abstract fun onTriggerStopped()

Called when stopped