cancelAnimationFrame method

void cancelAnimationFrame(
  1. int handle
)

The cancelAnimationFrame() method of the DedicatedWorkerGlobalScope interface cancels an animation frame request previously scheduled through a call to DedicatedWorkerGlobalScope.requestAnimationFrame.

Calling the cancelAnimationFrame() method requires the current worker to have an associated owner Window. That means that the current worker must be created by Window or by a dedicated worker that also has an associated owner Window.

Implementation

external void cancelAnimationFrame(int handle);