Gets information about the current application.
Corresponds to ApplicationInterface.currentApplication
getter.
An object with packageName, versionName, and versionCode, or null if unavailable.
Gets information about the current root manager application.
Corresponds to ApplicationInterface.currentRootManager
getter.
An object with packageName, versionName, and versionCode, or null if unavailable.
Exits the native application.
Corresponds to ApplicationInterface.exit()
.
Gets information about a specific application by its package name.
Corresponds to ApplicationInterface.getApplication(packageName)
.
The package name of the application.
An object with packageName, versionName, and versionCode, or null if unavailable/error.
Opens a file chooser dialog using the provided intent data.
Corresponds to ApplicationInterface.openFile(i: IntentData?)
.
An Intent object (from the previously defined Intent class) containing file selection details.
Sets the refreshing state of the pull-to-refresh mechanism.
Requires pull-to-refresh and JavaScript refresh interceptor to be enabled natively.
Corresponds to ApplicationInterface.setRefreshing(state)
.
True to show refreshing indicator, false to hide.
Starts a new activity using the provided intent data.
Corresponds to ApplicationInterface.startActivity(i: IntentData)
.
An Intent object (from the previously defined Intent class) describing the activity to start.
Represents the WebUI interface for interacting with native application functionalities. This class bridges JavaScript calls to methods exposed by the native ApplicationInterface.