render

abstract fun render(    templateId: String,     templateType: String,     templateContent: String,     header: Header,     contextLayer: DisplayAgentInterface.ContextLayer,     parentTemplateId: String?): Boolean

Used to notify the renderer when received a display directive.

It is a good time to display template.

If true returned, the renderer should call displayCardRendered after display rendered.

Return

true: if will render, false: otherwise

Parameters

templateId

the unique identifier for the template card

templateType

the template type

templateContent

the content of template in structured JSON

header

the header for this render

contextLayer

the layer type

parentTemplateId

the parent template id, null if not exist.