Lines Matching refs:timer
90 …12149"><a name="p18761104812149"></a><a name="p18761104812149"></a>Create timer, callback method</…
95 …5451011"><a name="p3335145451011"></a><a name="p3335145451011"></a>Create timer, promise method</p>
98 …ame="p1893413268144"></a><a name="p1893413268144"></a>function startTimer(timer: number, triggerTi…
100 …149"><a name="p18761104812149"></a><a name="p18761104812149"></a>Start the timer, callback mode</p>
103 …ame="p1893413268144"></a><a name="p1893413268144"></a>function startTimer(timer: number, triggerTi…
105 …2149"><a name="p18761104812149"></a><a name="p18761104812149"></a>Start the timer, promise mode</p>
108 …name="p1893413268144"></a><a name="p1893413268144"></a>function stopTimer(timer: number, callback:…
110 …2149"><a name="p18761104812149"></a><a name="p18761104812149"></a>Stop the timer, callback mode</p>
113 …name="p1893413268144"></a><a name="p1893413268144"></a>function stopTimer(timer: number): Promise&…
115 …12149"><a name="p18761104812149"></a><a name="p18761104812149"></a>Stop the timer, promise mode</p>
118 …e="p1893413268144"></a><a name="p1893413268144"></a>function destroyTimer(timer: number, callback:…
120 …"><a name="p18761104812149"></a><a name="p18761104812149"></a>Destroy the timer, callback method</…
123 …e="p1893413268144"></a><a name="p1893413268144"></a>function destroyTimer(timer: number): Promise&…
125 …"><a name="p18761104812149"></a><a name="p18761104812149"></a>Destroy the timer, the promise metho…
146 …/a>TIMER_TYPE_REALTIME: Set as the system startup time timer, otherwise it is the walltime timer;…
147 TIMER_TYPE_WAKEUP: Set to wake-up timer, otherwise it is non-wake-up;
148 const TIMER_TYPE_EXACT: Set as a precision timer, otherwise it is a non-precision timer;
149 …const TIMER_TYPE_IDLE: Set to IDLE mode timer, otherwise it is non-IDLE mode timer (not supported …
157 …761104812149"></a><a name="p18761104812149"></a>true Is a cyclic timer, false is a single timer</p>
164 …812149"></a>If it is a cyclic timer, the repeat value should be greater than 5000 milliseconds, an…
171 …/a><a name="p18761104812149"></a>Set the wantagent to notify, and notify when the timer expires</p>
178 …p18761104812149"></a>Set the callback function, which will be triggered after the timer expires</p>
224 console.log("create timer")
226 console.log("start timer")
228 console.log("stop timer")
230 console.log("destroy timer")