On this page ▾
@pangular-inspector/devtools/overlay-nativescript exports, generated from the package source.
@pangular-inspector/devtools/overlay-nativescript
Import from @pangular-inspector/devtools/overlay-nativescript. This page is generated from packages/devtools/src/overlay-nativescript.ts and the files it re-exports. Run pnpm docs:api after you change the public API.
defaultDevtoolsBaseURL
Function. Source: packages/devtools/src/overlay-nativescript.ts.
Where a simulator or emulator finds a devtools server on the machine that runs it. A physical device needs the machine's LAN address instead.
function defaultDevtoolsBaseURL(port = 9999): string;
initNativeScriptOverlay
Function. Source: packages/devtools/src/overlay-nativescript.ts.
function initNativeScriptOverlay(options: NativeScriptOverlayOptions = {}): () => void;
lanDevtoolsURL
Function. Source: packages/devtools/src/lan-url.ts.
The devtools server URL on the LAN that the build injected, or undefined
when it injected none. Bundlers replace the constant at build time; Vite's
dev server may define it on globalThis instead, so both are read.
function lanDevtoolsURL(): string | undefined;
NativeScriptOverlayOptions
Interface. Source: packages/devtools/src/overlay-nativescript.ts.
interface NativeScriptOverlayOptions {
/**
* Absolute URL of the devtools server. Defaults to the LAN address the build
* injected (`lanDevtoolsURL()`), then to `defaultDevtoolsBaseURL()`.
*/
baseURL?: string;
/** How often the app reports, in milliseconds. Defaults to the server's `limits.refreshMs`. */
intervalMs?: number;
/** How long to wait before trying the server again after a failure, in milliseconds. */
retryMs?: number;
}