Table of Contents

TTMSFNCWebCoreClientBrowser Class

Drop-in browser component that connects to a TMS WEB Core application and exchanges JSON messages with it over a built-in client event channel.

API unit family: TMSFNCWebCoreClientBrowser Inherits from: TTMSFNCCustomWebCoreClientBrowser

Syntax

TTMSFNCWebCoreClientBrowser = class(TTMSFNCCustomWebCoreClientBrowser)

Methods

Name Description
AddBridge Registers a native host object under the given bridge name so that JavaScript in the page can call its methods.
CanGoBack Returns True if there is at least one entry to navigate back to in the browser history.
CanGoForward Returns True if there is at least one entry to navigate forward to in the browser history.
CaptureScreenShot Captures a screenshot of the current browser content and delivers it via the completion event.
CheckIdentifier Verifies that the browser is connected to the expected WEB Core client application.
ClearCache Clears the browser cache for the configured cache folder.
Connect Initiates the connection sequence by starting the document-ready state monitor.
DeInitialize Releases resources held by the underlying native browser engine.
ExecuteJavaScript Evaluates a JavaScript expression in the hosted browser page.
ExecuteJavaScriptSync Evaluates a JavaScript expression synchronously and returns the result as a string.
GetBridgeCommunicationLayer Returns the JavaScript code that implements the communication channel for the named bridge.
GetWebBrowserInstance Returns the COM interface for the underlying Windows WebView2 browser instance.
GoBack Navigates to the previous entry in the browser history.
GoForward Navigates to the next entry in the browser history.
Initialize Initializes the underlying native browser engine.
IsFMXBrowser Returns True when this browser component is hosted inside a FireMonkey form.
LoadFile Loads a local file from disk into the browser.
LoadHTML Loads the given HTML string directly into the browser without a network request.
NativeBrowser Returns a pointer to the underlying native browser control or view.
NativeDialog Returns a pointer to the native Android dialog associated with the browser.
NativeEnvironment Returns a pointer to the underlying native browser environment (WebView2 environment, WKWebView configuration, etc.).
Navigate Navigates to the configured URL and initiates the connection handshake with the hosted WEB Core client.
Reload Reloads the current page in the browser.
RemoveBridge Unregisters a previously added native host bridge object.
Send Serializes a JSON value and sends it as a message to the hosted WEB Core application.
SendMessage Sends a plain-text message string to the hosted WEB Core application.
StopLoading Cancels any in-progress page load.

Events

Name Description
OnConnected Fires when the connection handshake with the WEB Core application is complete. (inherited from TTMSFNCCustomWebCoreClientBrowser)
OnReceiveMessage Fires when a JSON message is received from the hosted WEB Core application. (inherited from TTMSFNCCustomWebCoreClientBrowser)