DisplayAgent
class DisplayAgent( playSynchronizer: PlaySynchronizerInterface, elementSelectedEventHandler: ElementSelectedEventHandler, triggerChildEventSender: TriggerChildEventSender, sessionManager: SessionManagerInterface, interLayerDisplayPolicyManager: InterLayerDisplayPolicyManager, contextStateProviderRegistry: ContextStateProviderRegistry, enableDisplayLifeCycleManagement: Boolean, defaultDuration: Long) : CapabilityAgent, DisplayAgentInterface, SupportedInterfaceContextProvider, ControlFocusDirectiveHandler.Controller, ControlScrollDirectiveHandler.Controller, CloseDirectiveHandler.Controller, UpdateDirectiveHandler.Controller, RenderDirectiveHandler.Controller, RedirectTriggerChildDirectiveHandler.Controller, PlayStackManagerInterface.PlayContextProvider
Content copied to clipboard
Constructors
Link copied to clipboard
fun DisplayAgent( playSynchronizer: PlaySynchronizerInterface, elementSelectedEventHandler: ElementSelectedEventHandler, triggerChildEventSender: TriggerChildEventSender, sessionManager: SessionManagerInterface, interLayerDisplayPolicyManager: InterLayerDisplayPolicyManager, contextStateProviderRegistry: ContextStateProviderRegistry, enableDisplayLifeCycleManagement: Boolean, defaultDuration: Long)
Content copied to clipboard
Types
Link copied to clipboard
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?)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun close(playServiceId: String, listener: CloseDirectiveHandler.Controller.OnCloseListener)
Content copied to clipboard
Link copied to clipboard
open override fun controlFocus(playServiceId: String, direction: Direction): Boolean
Content copied to clipboard
Link copied to clipboard
open override fun controlScroll(playServiceId: String, direction: Direction): Boolean
Content copied to clipboard
Link copied to clipboard
Notifies the display that has been cleared.
Link copied to clipboard
open override fun displayCardRendered(templateId: String, controller: DisplayAgentInterface.Controller?)
Content copied to clipboard
Notifies the display that has been rendered.
Link copied to clipboard
Notifies the display that has been render failed.
Link copied to clipboard
open override fun getPlayContext(): PlayStackManagerInterface.PlayContext?
Content copied to clipboard
Link copied to clipboard
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)
Content copied to clipboard
Link copied to clipboard
open override fun provideState( contextSetter: ContextSetterInterface, namespaceAndName: NamespaceAndName, contextType: ContextType, stateRequestToken: Int)
Content copied to clipboard
Link copied to clipboard
open override fun redirectTriggerChild( header: Header, payload: RedirectTriggerChildDirectiveHandler.Payload, result: RedirectTriggerChildDirectiveHandler.Controller.OnResultListener)
Content copied to clipboard
Link copied to clipboard
open override fun removeListener(listener: DisplayAgentInterface.Listener)
Content copied to clipboard
Link copied to clipboard
open override fun render(messageId: String, listener: RenderDirectiveHandler.Controller.OnResultListener)
Content copied to clipboard
Link copied to clipboard
open override fun setElementSelected( templateId: String, token: String, postback: String?, callback: DisplayInterface.OnElementSelectedCallback?): String
Content copied to clipboard
Each element has it's own token.
Link copied to clipboard
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?)
Content copied to clipboard