animationInterval
AccessorStatic
Controls how frequently the application polls for changes that may require a new animation frame to be requested. Such changes include resizing a Viewport or changing the device pixel ratio by zooming in or out in the browser. The default interval is 1 second. It may be desirable to override the default for specific apps and/or devices.
- Increasing the interval can conserve battery life on battery-powered devices at the expense of slower response to resize events.
- An application that only displays a single Viewport whose dimensions only change when the dimensions of the application window change, and which does not support changing application zoom level, could disable the interval altogether.
get: BeDuration | undefined
SetterStatic
Controls how frequently the application polls for changes that may require a new animation frame to be requested. Such changes include resizing a Viewport or changing the device pixel ratio by zooming in or out in the browser. The default interval is 1 second. It may be desirable to override the default for specific apps and/or devices.
- Increasing the interval can conserve battery life on battery-powered devices at the expense of slower response to resize events.
- An application that only displays a single Viewport whose dimensions only change when the dimensions of the application window change, and which does not support changing application zoom level, could disable the interval altogether.
set(interval: BeDuration | undefined): void
Parameter | Type | Description |
---|---|---|
interval | BeDuration | undefined | The interval at which to poll for changes. If undefined (or negative), the application will never poll. If zero, the application will poll as frequently as possible. |
Defined in
Last Updated: 05 June, 2020