TextAgentDelegate

public protocol TextAgentDelegate : AnyObject

The TextAgentDelegate protocol defines method that changed state or received result.

The methods of this protocol are all optional.

  • Tells the delegate that TextAgent received result.

    Declaration

    Swift

    func textAgentShouldHandleTextSource(directive: Downstream.Directive) -> Bool

    Parameters

    directive

    The directive of Text.TextSource.

    Return Value

    true if handled, otherwise return false

  • Tells the delegate that TextAgent received result.

    Declaration

    Swift

    func textAgentShouldHandleTextRedirect(directive: Downstream.Directive) -> Bool

    Parameters

    directive

    The directive of Text.TextRedirect.

    Return Value

    true if handled, otherwise return false