BrowserManager
@vimp-mp/types 2.0.1Creates and tracks CEF browser overlays.
ts
interface BrowserManagerMembers
all
ts
readonly all: Array<Browser>All active browser overlays.
count
ts
readonly count: numberNumber of active browser overlays.
create
ts
create(url: string): BrowserCreate 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 | nullReturns the browser with id, or null when it no longer exists.