GigyaWebBridge
public class GigyaWebBridge<T> : NSObject, WKScriptMessageHandler where T : GigyaAccountProtocol
The GigyaWebBridge acts as the optimal bridge between the Gigya webSdk and the iOS sdk. Supporting complex flows such as screensets, saml etc.
-
Attch
WKWebViewobject to the webBridge instance.Declaration
Swift
public func attachTo(webView: WKWebView, viewController: UIViewController, pluginEvent: @escaping (GigyaPluginEvent<T>) -> Void)Parameters
webViewYour
WKWebViewobject.viewControllerShown view controller.
pluginEventPlugin completion
GigyaPluginEvent<T>.
-
Declaration
Swift
public func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage)
GigyaWebBridge Class Reference