DisplayAgentProtocol
public protocol DisplayAgentProtocol : CapabilityAgentable
The DisplayAgent handles directives for controlling template display.
-
The object that acts as the delegate of extension-agent
Declaration
Swift
var delegate: DisplayAgentDelegate? { get set } -
The object to set the default duration of
DisplayTemplate.The default is DisplayTemplateDuration.short
Declaration
Swift
var defaultDisplayTempalteDuration: DisplayTemplateDuration { get set } -
All of template has a templateId and all of element has a token.
The Client should call this when element(view) selected(clicked).
Declaration
Swift
@discardableResult func elementDidSelect(templateId: String, token: String, postback: [String : AnyHashable]?, completion: ((StreamDataState) -> Void)?) -> StringParameters
templateIdThe unique identifier for the template.
tokenThe unique identifier for the element.
postbackAdditional data for the element.
-
This should be called when occur interaction(input event such as touch, drag, etc…) for display
Declaration
Swift
func notifyUserInteraction()
-
elementDidSelect(templateId:Extension methodtoken: postback: ) <#Description#>
Declaration
Swift
@discardableResult func elementDidSelect(templateId: String, token: String, postback: [String : AnyHashable]?) -> StringParameters
templateId<#templateId description#>
token<#token description#>
postback<#postback description#>
Return Value
<#description#>
View on GitHub
DisplayAgentProtocol Protocol Reference