Skip to main content

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

ParamTypeDescription
urlstringThe URL to open.
[enableRemoteDebugging]booleanWhether 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

ParamTypeDescription
urlstring
tabIdentifierstringAn 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