Reactive

struct Reactive<Base>

Provides a public extension on ReCaptcha that makes it reactive.

  • Starts the challenge validation uppon subscription.

    The stream’s element is a String with the validation token.

    Sends stop() uppon disposal.

    Declaration

    Swift

    func validate(on view: UIView, resetOnError: Bool = true) -> Observable<String>

    Parameters

    view

    The view that should present the webview.

    resetOnError

    If ReCaptcha should be reset if it errors. Defaults to true

  • Resets the ReCaptcha.

    The reset is achieved by calling grecaptcha.reset() on the JS API.

    Declaration

    Swift

    var reset: AnyObserver<Void>