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.See
ReCaptcha.stop()Declaration
Swift
func validate(on view: UIView, resetOnError: Bool = true) -> Observable<String>Parameters
viewThe view that should present the webview.
resetOnErrorIf 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>
View on GitHub
Reactive Extension Reference