FioriUIWebViewPresenter
open class FioriUIWebViewPresenter : UIWebViewPresenting, FlowPresentationDelegateClient
The default implementation for the UIWebViewPresenting. Presents an UIWebView on demand, can be configured to show an info screen before the presentation.
-
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: SAPUIWebViewDelegate? = nil)
Parameters
delegate
The web view presenter delegate to handle presenter events.
webViewDelegate
/// The web view delegate.
-
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?
-
The web view delegate.
Declaration
Swift
open weak var webViewDelegate: SAPUIWebViewDelegate?
-
Presents the web view and passes the instance in the completion handler.
Declaration
Swift
open func presentWebView(completionHandler: @escaping (UIWebView?, Error?) -> Void)
-
Dismisses the presented web view.
Declaration
Swift
open func dismissWebView()
-
Implementation when the user taps the cancel button
Declaration
Swift
public func didTapCancel(on viewController: FUIWebViewContainer)
Parameters
viewController
FUIWebViewContainer to dismiss