FioriASWebAuthenticationSessionPresenter

@available(iOS 12.0, *)
open class FioriASWebAuthenticationSessionPresenter : ASWebAuthenticationSessionPresenting, FlowPresentationDelegateClient

The default implementation for the ASWebAuthenticationSessionPresenting. Presents a ASWebAuthenticationSession on demand, can be configured to show an info screen before the presentation.

  • ASWebAuthenticationSession callbackURLScheme

    Declaration

    Swift

    open var callbackURLScheme: String?
  • Instantiates the web view presenter. By default it has an info screen which is presented during restore flow and application running.

    Declaration

    Swift

    public init(delegate: WebViewPresenterDelegate? = nil)

    Parameters

    delegate

    The web view presenter delegate to handle presenter events.

  • The presenter delegate, which handles the webview presenter UIViewController

    Declaration

    Swift

    open weak var delegate: WebViewPresenterDelegate?
  • Presents the web view and passes the instance in the completion handler.

    Declaration

    Swift

    open func presentWebView(with url: URL, sessionCompletionHandler: @escaping ASWebAuthenticationSession.CompletionHandler, completionHandler: @escaping (ASWebAuthenticationSession?, Error?) -> Void)
  • Dismisses the presented web view.

    Declaration

    Swift

    open func dismissWebView()