Skip to content

TMSFMXNativeWKWebView

Usage

The TMSFMXNativeWKWebView class defines a view that you use to incorporate web content seamlessly into your app’s UI.

Public Properties

Property name Description
WebView Returns a reference to the native iOS WKWebView.

Public Methods

Method name Description
CanGoBack: Boolean Returns a boolean if the WebView can go back a page.
CanGoForward: Boolean Returns a boolean if the WebView can go forward a page.
ExecuteJavaScript(AScript: String): String Executes JavaScript on the current page.
GetView Returns a reference to the native iOS UIView.
GoBack Goes back one page.
GoForward Goes forward one page.
isLoading Returns a boolean whether the WebView is loading or not.
LoadFile(AFile: String) Loads a specific file in the WebView.
LoadHTMLString(AHTML: String) Loads a specific HTML string or HTML content in the WebView.
Navigate(AUrl: String) Navigates to a specific URL.
Reload Reloads the current page.
StopLoading Stops loading the current page.

Published Events

Event name Description
OnDidFailLoadWithError Event that is called when the loading failed.
OnDidFinishLoad Event that is called when the loading is finished.
OnDidStartLoad Event that is called when the loading is started.
OnShouldStartLoadWithRequest Event that is called when the WebView should start loading with a specific request.