DisplayAgent

Constructors

Link copied to clipboard
fun DisplayAgent(    playSynchronizer: PlaySynchronizerInterface,     elementSelectedEventHandler: ElementSelectedEventHandler,     triggerChildEventSender: TriggerChildEventSender,     sessionManager: SessionManagerInterface,     interLayerDisplayPolicyManager: InterLayerDisplayPolicyManager,     contextStateProviderRegistry: ContextStateProviderRegistry,     enableDisplayLifeCycleManagement: Boolean,     defaultDuration: Long)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class DisplayContext(    val playServiceId: String?,     val token: String?,     val focusedItemToken: String?,     val visibleTokenList: List<String>?)
Link copied to clipboard
data class TemplatePayload(    val playServiceId: String?,     val token: String?,     val duration: String?,     val contextLayer: DisplayAgentInterface.ContextLayer?,     val playStackControl: PlayStackControl?,     val historyControl: HistoryControl?)

Functions

Link copied to clipboard
open override fun addListener(listener: DisplayAgentInterface.Listener)
Link copied to clipboard
open override fun cancelRender(messageId: String)
Link copied to clipboard
open override fun close(playServiceId: String, listener: CloseDirectiveHandler.Controller.OnCloseListener)
Link copied to clipboard
open override fun controlFocus(playServiceId: String, direction: Direction): Boolean
Link copied to clipboard
open override fun controlScroll(playServiceId: String, direction: Direction): Boolean
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: DisplayAgentInterface.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 getPlayContext(): PlayStackManagerInterface.PlayContext?
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 preRender(info: RenderDirectiveHandler.RenderDirectiveInfo)
Link copied to clipboard
open override fun provideState(    contextSetter: ContextSetterInterface,     namespaceAndName: NamespaceAndName,     contextType: ContextType,     stateRequestToken: Int)
Link copied to clipboard
open override fun redirectTriggerChild(    header: Header,     payload: RedirectTriggerChildDirectiveHandler.Payload,     result: RedirectTriggerChildDirectiveHandler.Controller.OnResultListener)
Link copied to clipboard
open override fun removeListener(listener: DisplayAgentInterface.Listener)
Link copied to clipboard
open override fun render(messageId: String, listener: RenderDirectiveHandler.Controller.OnResultListener)
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: DisplayAgentInterface.Renderer?)

Set a renderer to interact with the display agent.

Link copied to clipboard
open override fun triggerChild(    templateId: String,     playServiceId: String,     data: JsonObject,     callback: DisplayAgentInterface.OnTriggerChildCallback?)
Link copied to clipboard
open override fun update(    header: Header,     token: String,     payload: String,     listener: UpdateDirectiveHandler.Controller.OnUpdateListener)

Properties

Link copied to clipboard
open override val namespaceAndName: NamespaceAndName