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)?) -> String
Parameters
templateId
The unique identifier for the template.
token
The unique identifier for the element.
postback
Additional 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]?) -> String
Parameters
templateId
<#templateId description#>
token
<#token description#>
postback
<#postback description#>
Return Value
<#description#>