interface TimerInit {
    autoStart: boolean;
    onInvoke: (() => void);
    onStart?: (() => void);
    onStop?: (() => void);
    rate: number;
    repeat: boolean;
}

Properties

autoStart: boolean

Start the timer if auto-start is enabled.

onInvoke: (() => void)

Timer.onInvoke

Type declaration

    • (): void
    • Invoked on timer invoke.

      Returns void

onStart?: (() => void)

Timer.onStart

Type declaration

    • (): void
    • Invoked when timer starts.

      Returns void

onStop?: (() => void)

Timer.onStop

Type declaration

    • (): void
    • Invoked when timer stops.

      Returns void

rate: number

Timer.rate

repeat: boolean

Timer.repeat