Lines Matching refs:timer
45 | createTimer(options: TimerOptions, callback: AsyncCallback<number>): void | Create timer, callbac…
46 | createTimer(options: TimerOptions): Promise<number> | Create timer, promise method …
47 | startTimer(timer: number, triggerTime: number, callback: AsyncCallback<boolean>): void | Start th…
48 | startTimer(timer: number, triggerTime: number): Promise<boolean> | Start the timer, promise mode …
49 | stopTimer(timer: number, callback: AsyncCallback<boolean>): void | Stop the timer, callback mode…
50 | stopTimer(timer: number): Promise<boolean> | Stop the timer, promise mode …
51 | destroyTimer(timer: number, callback: AsyncCallback<boolean>): void | Destroy the timer, callback…
52 | destroyTimer(timer: number): Promise<boolean> | Destroy the timer, the promise met…
58 …timer (the timer start time cannot be later than the currently set system time); <br/>If the value…
59 | repeat | boolean | true Is a cyclic timer, false is a single timer. |
60 …number | If it is a cyclic timer, the repeat value should be greater than 5000 milliseconds, an…
61 | wantAgent | wantAgent | Set the wantagent to notify, and notify when the timer expires. |
62 | callback | => void | Set the callback function, which will be triggered after the timer expire…
103 console.log("create timer")
105 console.log("start timer")
107 console.log("stop timer")
109 console.log("destroy timer")