ReCaptchaDecoder

internal class ReCaptchaDecoder: NSObject

The Decoder of javascript messages from the webview

  • The decoder result.

    See more

    Declaration

    Swift

    enum Result
  • The closure that receives messages

    Declaration

    Swift

    fileprivate let sendMessage: ((Result) -> Void)
  • Initializes a decoder with a completion closure.

    Declaration

    Swift

    init(didReceiveMessage: @escaping (Result) -> Void)

    Parameters

    didReceiveMessage

    A closure that receives a ReCaptchaDecoder.Result

  • Sends an error to the completion closure

    Declaration

    Swift

    func send(error: ReCaptchaError)

    Parameters

    error

    The error to be sent.