tock / ai.tock.bot.definition / StoryHandlerListener

StoryHandlerListener

interface StoryHandlerListener (source)

To listen before and after action handling. Need to be registered using ai.tock.bot.engine.BotRepository.registerStoryHandlerListener.

Functions

endAction

Called when StoryHandler handling is over.

open fun endAction(botBus: BotBus, handler: StoryHandler): Unit

startAction

Called before StoryHandler.handle. If it returns false, the StoryHandlerListeners registered after this listener and the StoryHandler are not called. (however endAction of each StoryHandlerListener is called].

open fun startAction(botBus: BotBus, handler: StoryHandler): Boolean