Skip to content

BrowserManager

@vimp-mp/types 2.0.1

Interface · Client API

Creates and tracks CEF browser overlays.

ts
interface BrowserManager

Members

all

ts
readonly all: Array<Browser>

All active browser overlays.

count

ts
readonly count: number

Number of active browser overlays.

create

ts
create(url: string): Browser

Create a new browser window. url may be relative to the scripts folder (e.g. 'index.html'), a package:// client package URL (e.g. 'package://ui/index.html'), or file:// / http(s)://.

getById

ts
getById(id: number): Browser | null

Returns the browser with id, or null when it no longer exists.

VIMP developer documentation