目录

API Reference

This document lists all classes, interfaces, and types available in MōBrowser that can be used for building modern and secure desktop applications with web technologies.

All items are grouped by category and sorted alphabetically. Click on any item name for detailed documentation.

Classes 

ClassDescription
AppProvides methods to manage application lifecycle.
AppUpdateAn available application update.
BrowserA browser instance is responsible for loading, rendering, and controlling the web content.
BrowserWindowAn application window that displays content of a Browser instance associated with it.
CheckboxContextMenuItemA checkbox context menu item that can be checked or unchecked, and perform an action when clicked.
CheckboxMenuItemA checkbox menu item that can be checked or unchecked, and perform an action when clicked.
ClipboardThe system clipboard manager.
CommandLineProvides access to the application command line switches and their values.
ContextMenuA context menu that contains a list of context menu items.
ContextMenuElementA base class that implements the common functionality for all context menu elements.
ContextMenuItemA context menu item that can be clicked to perform an action.
ContextMenuItemBaseA base class that implements the common functionality for all context menu items.
ContextMenuItemWithRoleA context menu item with a predefined role that may perform an action when clicked.
DesktopProvides access to the desktop environment.
DevToolsThe DevTools window that can be used to inspect and debug the browser.
DockAllows controlling application icon in the Dock on macOS.
DownloadA download activity.
GlobalShortcutThe global keyboard shortcut manager.
IpcProvides Inter-Process Communication (IPC) capabilities between the renderer and main processes.
KeyModifiersThe key modifiers that can be pressed.
MenuA menu that contains a list of menu items.
MenuElementA base class that implements the common functionality for all menu elements.
MenuItemA menu item that can be clicked to perform an action.
MenuItemBaseA base class that implements the common functionality for all menu items.
MenuItemWithRoleA menu item with predefined role.
MenuWithRoleA menu with predefined role that may contain a list of menu items.
TrayA tray that can be used to display an icon and a menu in the system tray.

Interfaces 

InterfaceDescription
AlertParamsParameters for the alert dialog.
AppUpdateDownloadResultThe result of the application update download.
BrowserWindowOptionsOptions for creating a new browser window.
CheckboxContextMenuItemOptionsOptions for constructing a checkbox context menu item.
CheckboxMenuItemOptionsOptions for constructing a checkbox menu item.
ConfirmParamsParameters for the confirm dialog.
ConsoleMessageThe console message details.
ContextMenuItemBaseOptionsOptions for constructing a context menu item.
ContextMenuItemWithRoleOptionsOptions for constructing a context menu item with a role.
ContextMenuOptionsOptions for constructing a context menu.
DownloadProgressThe progress of the download.
FileFilterA file filter for a file open dialog.
LaunchInfoContains information about the application launch, such as whether it is the first run and the version of the application that was last launched.
MenuItemBaseOptionsOptions for constructing a menu item.
MenuItemWithRoleOptionsOptions for constructing a menu item with a role.
MenuOptionsOptions for constructing a menu.
MenuWithRoleOptionsOptions for constructing a menu with a role.
MessageDialogButtonA button in a message dialog.
MessageDialogCheckboxA checkbox in a message dialog.
MessageDialogOptionsOptions for opening a message dialog.
MessageDialogResultThe result of a message dialog.
MessageDialogTextFieldA text field in a message dialog.
MethodCodecCodec for a single RPC method: decodes request bytes and encodes response bytes.
OpenDialogFeaturesThe features of a file open dialog.
OpenDialogOptionsOptions for opening a file open dialog.
OpenDialogResultThe result of a file open dialog.
OpenPopupParamsParameters for opening a popup window.
PointA point in 2D space.
PromptParamsParameters for the prompt dialog.
RectA rectangle in 2D space.
SaveDialogFeaturesThe features of a file save dialog.
SaveDialogOptionsOptions for opening a file save dialog.
SaveDialogResultThe result of a file save dialog.
ServiceDescriptorDescribes an RPC service: its name and the codecs for each method.
ServiceInstanceA service implementation with an attached {
ShowContextMenuParamsParameters for showing a context menu.
SizeA size in 2D space.
StartDownloadParamsParameters for starting a download.
TrayOptionsOptions for constructing a tray.

Types 

TypeDescription
AlertActionThe action to be taken when the alert dialog is closed.
ClipboardTypeThe type of the clipboard data.
CloseActionThe action to be taken when the browser is about to close.
ConfirmActionThe action to be taken when the confirm dialog is closed.
ConsoleMessageLevelThe level of the console message.
ContextMenuContentTypeThe type of content that the context menu is being shown for.
ContextMenuElementTypeThe type of the context menu element.
ContextMenuItemRoleThe list of supported context menu item roles.
DownloadInterruptReasonThe reason for the download interruption.
FilePathAn absolute or relative path to a file on the local file system.
MenuElementTypeThe type of the menu element.
MenuItemRoleThe list of supported menu item roles.
MenuRoleThe list of supported menu roles.
MessageDialogButtonTypeThe type of the button.
MessageDialogTextFieldTypeThe type of the text field.
MessageDialogTypeThe type of the message dialog.
MouseButtonThe type of mouse button.
OpenDialogSelectionPolicyDefines what types of items the user can select in a file open dialog.
OpenPopupActionThe action to be taken when opening the popup window.
PathNameThe path name that is used to get the path to specific directories using the app.getPath() method.
PromptActionThe action to be taken when the prompt dialog is closed.
ShortcutA shortcut is a string in the format “CommandOrControl+Shift+F”.
StartDownloadActionThe action to be taken when starting a download.
ThemeThe application theme.
VibrancyEffectThe vibrancy effect of the window on macOS.
WindowButtonTypeThe type of the window button.
WindowDisplayPolicyThe policy indicating how the window is displayed on multiple desktops.