Download wp-calypso/desktop/app/lib/platform/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/platform/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/platform/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/platform/README.md
Platform
Provides a wrapper around platform-specific features.
Note that the term dock is used to refer to the OS X and Windows tray.
For more specific platform features refer here:
General functions
setMainWindow( mainWindow ) - needs to be called once the main app window is ready
Where:
mainWindow- the mainBrowserWindowinstance
isOSX() - true if running on OS X, false otherwise
isWindows() - true if running on Windows, false otherwise
isWindows10() - true if running on Windows 10 (or greater), false otherwise
isLinux() - true if running on Linux, false otherwise
getPlatformString() - returns the actual platform string as reported by process.platform
Platform specific functions
restore() - show and focus the app window
showNotificationsBadge() - show a notification badge in the appropriate place
clearNotificationsBadge() - remove any notification badge
setDockMenu( enabled ) - toggle any dock menu items with requiresUser
Where:
enabled- boolean