tock / ai.tock.bot.connector.alexa / AlexaConnectorCallback

AlexaConnectorCallback

data class AlexaConnectorCallback : ConnectorCallbackBase, SpeechletV2 (source)

The alexa connector callback.

Properties

alexaRequest

The alexa raw request.

val alexaRequest: SpeechletRequestEnvelope<*>?

applicationId

The application id.

val applicationId: String

Functions

exceptionThrown

Called by ConnectorController.handle when an exception is thrown.

fun exceptionThrown(event: Event, throwable: Throwable): Unit

onIntent

fun onIntent(requestEnvelope: SpeechletRequestEnvelope<IntentRequest>): SpeechletResponse?

onLaunch

fun onLaunch(requestEnvelope: SpeechletRequestEnvelope<LaunchRequest>): SpeechletResponse?

onSessionEnded

fun onSessionEnded(requestEnvelope: SpeechletRequestEnvelope<SessionEndedRequest>): Unit

onSessionStarted

fun onSessionStarted(requestEnvelope: SpeechletRequestEnvelope<SessionStartedRequest>): Unit