Application Control
quit()
Quit the application gracefully.relaunch()
Restart the application.focus()
Bring the application to focus.hide()
Hide the application (macOS).isHidden()
Check if the application is currently hidden.Returns true if the application is hidden
Locale and Internationalization
getLocale()
Get the current application locale.Returns the locale string (e.g., “en-US”)
getLocaleCountryCode()
Get the country code from the current locale.Returns the country code (e.g., “US”)
getSystemLocale()
Get the system-level locale.Returns the system locale string
Application Information
version()
Get the current application version.Returns the version string from your config
isRunningBundled()
Check if the application is running as a bundled executable.Returns true if running as a bundled app, false in development
Badge and Indicators
badgeCount()
Get or set the badge count on the app icon (macOS and Windows).The badge count to set, or null to get the current count
Returns the current badge count
Recent Documents
addRecentDocument()
Add a document to the recent documents list.Absolute path to the document file
recentDocuments()
Get the list of recent documents.Returns an array of document paths
clearRecentDocuments()
Clear all recent documents.Startup Behavior
openAtLogin()
Get or set whether the app should open at system login.True to enable, false to disable, null to get current setting
Returns the current or new setting
Emoji Panel
isEmojiPanelSupported()
Check if the emoji panel is supported on this platform.Returns true if emoji panel is supported
showEmojiPanel()
Show the system emoji picker panel.Complete Examples
Application Lifecycle
Locale-Aware Features
Recent Documents Menu
Unread Count Badge
Platform Notes
macOS: All features are fully supported including hide(), badgeCount(), and emoji panel.Windows: Badge count shows in taskbar. hide() and emoji panel have limited support.Linux: Feature support varies by desktop environment.