SFAuthenticationSessionPresenting

@available(*, deprecated, message: "Use ASWebAuthenticationSessionPresenting instead")
public protocol SFAuthenticationSessionPresenting : AnyObject

This protocol represents an API which is capable of presenting a SFAuthenticationSession.

  • The presenter delegate.

    Declaration

    Swift

    var delegate: WebViewPresenterDelegate? { get set }
  • Presents the web view and passes the instance in the completion handler.

    Declaration

    Swift

    func presentWebView(with url: URL, sessionCompletionHandler: @escaping SFAuthenticationSession.CompletionHandler, completionHandler: @escaping (SFAuthenticationSession?, Error?) -> Void)

    Parameters

    with

    The initial url which will be loaded in the web view. Can not change later.

  • Dismisses the presented web view.

    Declaration

    Swift

    func dismissWebView()