ExtensionAgentProtocol

public protocol ExtensionAgentProtocol : CapabilityAgentable

Extension-agent handles directives that not defined by other capability-agents

  • The object that acts as the delegate of extension-agent

    Declaration

    Swift

    var delegate: ExtensionAgentDelegate? { get set }
  • Declaration

    Swift

    @discardableResult
    func requestCommand(data: [String : AnyHashable], playServiceId: String, completion: ((StreamDataState) -> Void)?) -> String

    Parameters

    data

    Custom data as a Dictionary. Should be available converting JSON format. see JSONSerialization.isValidJSONObject.

    playServiceId

    The play’s unique id

    completion

    The completion handler to call when the request is complete.

    Return Value

    The dialogRequestId for request.

Default

  • <#Description#>

    Declaration

    Swift

    @discardableResult
    func requestCommand(data: [String : AnyHashable], playServiceId: String) -> String

    Parameters

    data

    <#data description#>

    playServiceId

    <#playServiceId description#>

    Return Value

    <#description#>