FioriWKWebViewPresenter

open class FioriWKWebViewPresenter : WKWebViewPresenting, FlowPresentationDelegateClient
extension FioriWKWebViewPresenter: FUIWebViewContainerDelegate

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

Default WKUIDelegate implementation provided with this presenter handles popups. Using a custom implementation (of WKWebViewPresenting && FlowPresentationDelegateClient) and injecting that custom implementation as presenter in OAuth2AuthenticationStep would have to take care of that.

  • Before the web view is presented, this handler is called for customization. By default it does nothing.

    Declaration

    Swift

    open var webViewControllerConfigurationHandler: (FUIWebViewContainer) -> FUIWebViewContainer
  • 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, webViewDelegate: SAPWKNavigationDelegate? = nil, webViewUIDelegate: SAPWKUIDelegate? = nil)

    Parameters

    delegate

    The web view presenter delegate to handle presenter events.

    webViewDelegate

    The web view delegate.

    webViewUIDelegate

    The web view ui delegate.

  • The presenter delegate, which handles the webview presenter UIViewController

    Declaration

    Swift

    open weak var delegate: WebViewPresenterDelegate?
  • The web view delegate.

    Declaration

    Swift

    open weak var webViewDelegate: SAPWKNavigationDelegate?
  • The web view ui delegate.

    Declaration

    Swift

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

    Declaration

    Swift

    open func presentWebView(completionHandler: @escaping (WKWebView?, Error?) -> Void)
  • Declaration

    Swift

    open func reloadWebView()
  • Declaration

    Swift

    open func dismissWebView()
  • Undocumented

    Declaration

    Swift

    open func showNotificationBanner()
  • Implementation when the user taps the cancel button

    Declaration

    Swift

    public func didTapCancel(on viewController: FUIWebViewContainer)

    Parameters

    viewController

    FUIWebViewContainer to dismiss