FioriSFAuthenticationSessionPresenter

@available(iOS 11.0, *)
open class FioriSFAuthenticationSessionPresenter : SFAuthenticationSessionPresenting, FlowPresentationDelegateClient

The default implementation for the SFAuthenticationSessionPresenting. Presents a SFAuthenticationSession on demand, can be configured to show an info screen before the presentation. If the callbackURLScheme is not set, the application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool func will be used

  • SFAuthenticationSession 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 SFAuthenticationSession.CompletionHandler, completionHandler: @escaping (SFAuthenticationSession?, Error?) -> Void)
  • Dismisses the presented web view.

    Declaration

    Swift

    open func dismissWebView()