render
abstract fun render( templateId: String, templateType: String, templateContent: String, header: Header, displayType: DisplayAggregatorInterface.Type, parentTemplateId: String?): Boolean
Content copied to clipboard
Used to notify the renderer when received a display directive.
It is a good time to display template.
If exist rendered template already in displayType, the renderer should clear the previous rendered template and do not miss call displayCardCleared after cleared. The SDK will not call clear for the previous 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 the render
displayType
the display type of display
parentTemplateId
the parent template id, null if not exist.