Class: SchedulerSystem
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.d.ts:8
The SchedulerSystem manages scheduled tasks with specific intervals.
Advanced
Implements
System<null>
Constructors
Constructor
> new SchedulerSystem(): SchedulerSystem
Returns
SchedulerSystem
Methods
cancel()
> cancel(id): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.d.ts:32
Cancels a scheduled task.
Parameters
id
number
The unique identifier of the task to cancel.
Returns
void
destroy()
> destroy(): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.d.ts:42
Internal
Destroys the scheduler system and removes all tasks.
Returns
void
Implementation of
init()
> init(): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.d.ts:19
Initializes the scheduler system and starts the ticker.
Returns
void
Implementation of
repeat()
> repeat(func, duration, useOffset?): number
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.d.ts:27
Schedules a repeating task.
Parameters
func
(elapsed) => void
The function to execute.
duration
number
The interval duration in milliseconds.
useOffset?
boolean
this will spread out tasks so that they do not all run at the same time
Returns
number
The unique identifier for the scheduled task.