NativeApp
Import :
const NativeApp = brackets.getModule("utils/NativeApp")
Async
Virtualized NativeApp apis that works cross-platform, and in the browser.
Kind: global variable
openLiveBrowser(url, [enableRemoteDebugging]) ⇒ $.Promise
openLiveBrowser Open the given URL in the user's system browser, optionally enabling debugging.
Kind: global function
Param | Type | Description |
---|---|---|
url | string | The URL to open. |
[enableRemoteDebugging] | boolean | Whether to turn on remote debugging. Default false. |
closeLiveBrowser() ⇒ $.Promise
closeLiveBrowser
Kind: global function
closeAllLiveBrowsers() ⇒ $.Promise
closeAllLiveBrowsers Closes all the browsers that were tracked on open
TODO: does not seem to work on Windows
Kind: global function
openURLInDefaultBrowser(url, tabIdentifier)
Opens a URL in the system default browser.
Kind: global function
Param | Type | Description |
---|---|---|
url | string | |
tabIdentifier | string | An optional tab identifier can be set to group the tabs. Maps to target option in browser. Doesn't do anything in tauri. |
getApplicationSupportDirectory()
Gets the path to the application's support directory
Kind: global function