Skip to content

Interface: AnimationFrameManager ​

Defined in: types/desktop-engine.d.ts:3588

Animation frame manager (a singleton, already created by the engine, which exports requestAnimationFrame)

Methods ​

cancelAnimationFrame() ​

ts
cancelAnimationFrame(id): void;

Defined in: types/desktop-engine.d.ts:3592

See the global cancelAnimationFrame

Parameters ​

ParameterType
idnumber

Returns ​

void


requestAnimationFrame() ​

ts
requestAnimationFrame(callback): number;

Defined in: types/desktop-engine.d.ts:3590

See the global requestAnimationFrame

Parameters ​

ParameterType
callbackFrameRequestCallback

Returns ​

number

The SDK is released under the Apache License 2.0