mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
/**
|
|
* Android specific global functions implementation.
|
|
*/
|
|
export function setTimeout(callback: Function, milliseconds: number): void {
|
|
new android.os.Handler(android.os.Looper.getMainLooper()).postDelayed(
|
|
new java.lang.Runnable({
|
|
run: function () { callback(); }
|
|
}),
|
|
long(milliseconds));
|
|
}
|