TextAgentProtocol
public protocol TextAgentProtocol : CapabilityAgentable
Text-agent is needed to send event-based text recognition.
-
The object that acts as the delegate of text-agent
Declaration
Swift
var delegate: TextAgentDelegate? { get set } -
Send event that needs a text-based recognition
Declaration
Swift
@discardableResult func requestTextInput( text: String, token: String?, requestType: TextAgentRequestType, completion: ((StreamDataState) -> Void)? ) -> StringParameters
textThe
textto be recognizedcompletionThe completion handler to call when the request is complete.
Return Value
The dialogRequestId for request.
-
requestTextInput(text:Extension methodtoken: requestType: ) <#Description#>
Declaration
Swift
@discardableResult func requestTextInput( text: String, token: String? = nil, requestType: TextAgentRequestType ) -> StringParameters
text<#text description#>
token<#token description#>
requestType<#requestType description#>
Return Value
<#description#>
-
requestTextInput(text:Extension methodrequestType: completion: ) <#Description#>
Declaration
Swift
@discardableResult func requestTextInput( text: String, requestType: TextAgentRequestType, completion: ((StreamDataState) -> Void)? ) -> StringParameters
text<#text description#>
requestType<#requestType description#>
completion<#completion description#>
Return Value
<#description#>
View on GitHub
TextAgentProtocol Protocol Reference