DisplayInterface

interface DisplayInterface<Renderer, Controller>

The basic interface for display

Types

Link copied to clipboard
enum ErrorType : Enum<DisplayInterface.ErrorType>

enum class for ErrorType

Link copied to clipboard
interface OnElementSelectedCallback : EventCallback<DisplayInterface.ErrorType>

callback interface for setElementSelected

Functions

Link copied to clipboard
abstract fun displayCardCleared(templateId: String)

Notifies the display that has been cleared.

Link copied to clipboard
abstract fun displayCardRendered(templateId: String, controller: Controller?)

Notifies the display that has been rendered.

Link copied to clipboard
abstract fun displayCardRenderFailed(templateId: String)

Notifies the display that has been render failed.

Link copied to clipboard
abstract fun setElementSelected(    templateId: String,     token: String,     postback: String? = null,     callback: DisplayInterface.OnElementSelectedCallback? = null): String

Each element has it's own token.

Link copied to clipboard
abstract fun setRenderer(renderer: Renderer?)

Set a renderer to interact with the display agent.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard