setElementSelected
abstract fun setElementSelected( templateId: String, token: String, postback: String? = null, callback: DisplayInterface.OnElementSelectedCallback? = null): String
Content copied to clipboard
Each element has it's own token.
This should be called when element selected(clicked) by the renderer.
Return
the dialogRequestId for request
Parameters
templateId
the unique identifier for the template card
token
the unique identifier for the element
postback
the data in structured json object which associated with token. Can be null if not exist.
callback
the result callback for element selected event
Throws
when received invalid call. for example, when display for given templateId is invalid (maybe cleared or not rendered)