Skip to content

Function: requestAnimationFrame() ​

ts
function requestAnimationFrame(callback): number;

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

Calls back on the next rendered frame with the frame's time on the performance.now() clock; pass the returned ID to cancelAnimationFrame to cancel. Not called while the app pauses content (on battery power, while a full-screen app is active, or while the display sleeps).

Parameters ​

ParameterType
callbackFrameRequestCallback

Returns ​

number

The SDK is released under the Apache License 2.0