DisplayAggregator

Constructors

Link copied to clipboard
fun DisplayAggregator(templateAgent: DisplayAgentInterface, audioPlayerAgent: AudioPlayerDisplayInterface)

Functions

Link copied to clipboard
open override fun displayCardCleared(templateId: String)

Notifies the display that has been cleared.

Link copied to clipboard
open override fun displayCardRendered(templateId: String, controller: DisplayAggregatorInterface.Controller?)

Notifies the display that has been rendered.

Link copied to clipboard
open override fun displayCardRenderFailed(templateId: String)

Notifies the display that has been render failed.

Link copied to clipboard
open override fun notifyUserInteraction(templateId: String)

This should be called when occur interaction(input event such as touch, drag, etc...) for display

Link copied to clipboard
open override fun onPostProcessed(directives: List<Directive>)
Link copied to clipboard
open fun onPreProcessed(directives: List<Directive>)
Link copied to clipboard
open override fun setElementSelected(    templateId: String,     token: String,     postback: String?,     callback: DisplayInterface.OnElementSelectedCallback?): String

Each element has it's own token.

Link copied to clipboard
open override fun setRenderer(renderer: DisplayAggregatorInterface.Renderer?)

Set a renderer to interact with the display agent.