mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Updated API reference.
This commit is contained in:
22
timer/timer.d.ts
vendored
22
timer/timer.d.ts
vendored
@@ -1,7 +1,25 @@
|
||||
/**
|
||||
* Timer functions.
|
||||
*/
|
||||
* Calls a function after a specified delay.
|
||||
* @param callback The function to be called.
|
||||
* @param milliseconds The time to wait before the function is called. Defaults to 0.
|
||||
*/
|
||||
export declare function setTimeout(callback: Function, milliseconds?: number): number;
|
||||
|
||||
/**
|
||||
* Clears the delay set by a call to the setTimeout function.
|
||||
* @param id The identifier returned by the previously called setTimeout() method.
|
||||
*/
|
||||
export declare function clearTimeout(id: number): void;
|
||||
|
||||
/**
|
||||
* Calls a function repeatedly with a delay between each call.
|
||||
* @param callback The function to be called.
|
||||
* @param milliseconds The delay between each function call.
|
||||
*/
|
||||
export declare function setInterval(callback: Function, milliseconds?: number): number;
|
||||
|
||||
/**
|
||||
* Clears repeated function which was set up by calling setInterval().
|
||||
* @param id The identifier returned by the setInterval() method.
|
||||
*/
|
||||
export declare function clearInterval(id: number): void;
|
||||
|
||||
Reference in New Issue
Block a user