FioriASWebAuthenticationSessionPresenter
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
restoreflow and application running.Declaration
Swift
public init(delegate: WebViewPresenterDelegate? = nil)Parameters
delegateThe web view presenter delegate to handle presenter events.
-
The delegate which handles the UIViewController presentation.
Declaration
Swift
open var presentationDelegate: FlowPresentationDelegate! { get set } -
Before the info screen is presented, this handler is called for customization. By default it does nothing.
Declaration
Swift
open var infoScreenConfigurationHandler: (FUIInfoViewController) -> Void { get set } -
An option set to configure when to present the info screen.
Declaration
Swift
open var infoScreenPresentationOptions: InfoScreenPresentationOptions { get set }
-
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) -
Reloads the web view
Declaration
Swift
open func reloadWebView() -
Dismisses the presented web view.
Declaration
Swift
open func dismissWebView() -
Undocumented
Declaration
Swift
open func showNotificationBanner()