withListener

fun withListener(listener: SpokestackTrayListener): TrayConfig.Builder

Register a listener to receive events from both Spokestack and the tray. This is the only way an application will be notified about speech recognition and/or NLU results.

Parameters

listener

The listener to register.