Time

Time

Type Definitions

TimerEventConfig

Since:
  • 3.0.0
Properties:
Name Type Attributes Default Description
delay number <optional>
0 计时器事件应该触发的延迟时间,以毫秒为单位.
repeat number <optional>
0 The total number of times the Timer Event will repeat before finishing.
loop boolean <optional>
false `true` if the Timer Event should repeat indefinitely.
callback function <optional>
计时器事件触发时将调用的回调.
callbackScope * <optional>
用来调用 `callback` 的作用域( `this` 对象).
args Array.<*> <optional>
要传递给 `callback` 的附加参数.
timeScale number <optional>
1 流逝时间的刻度.
startAt number <optional>
0 The initial elapsed time in milliseconds. Useful if you want a long duration with repeat, but for the first loop to fire quickly.
paused boolean <optional>
false `true` if the Timer Event should be paused.
Type:
  • object