Skip to content

WebEventsManager

Maintains a list of callbacks for specific web events and invokes callbacks when event occurs.

Constructors

new WebEventsManager()

new WebEventsManager(app): WebEventsManager

Creates callback arrays and registers to web events.

Parameters

app: Application<any>

Returns

WebEventsManager

Source

src/utils/WebEventsManager.ts:28

Methods

registerResizeCallback()

registerResizeCallback(pCallback): boolean

Registers a callback interested in browser resize.

Parameters

pCallback: ResizeCallback

The callback to register.

Returns

boolean

False if the callback was previously added.

Source

src/utils/WebEventsManager.ts:72


registerVisibilityChangedCallback()

registerVisibilityChangedCallback(pCallback): boolean

Registers a callback interested in visibility changes. Callbacks will be told if the page is visible.

Parameters

pCallback: VisibilityChangedCallback

The callback to register.

Returns

boolean

False if the callback was previously added.

Source

src/utils/WebEventsManager.ts:44


unregisterResizeCallback()

unregisterResizeCallback(pCallback): void

Unregisters a resize callback.

Parameters

pCallback: ResizeCallback

The callback to unregister.

Returns

void

Source

src/utils/WebEventsManager.ts:87


unregisterVisibilityChangedCallback()

unregisterVisibilityChangedCallback(pCallback): void

Unregisters a visibility change callback.

Parameters

pCallback: VisibilityChangedCallback

The callback to unregister.

Returns

void

Source

src/utils/WebEventsManager.ts:59