mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
setTimeout added in android utils
This commit is contained in:
@@ -21,4 +21,12 @@
|
||||
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
|
||||
export function setTimeout(callback, milliseconds) {
|
||||
new android.os.Handler(android.os.Looper.getMainLooper()).postDelayed(
|
||||
new java.lang.Runnable({
|
||||
run: function () { callback(); }
|
||||
}),
|
||||
milliseconds);
|
||||
}
|
||||
Reference in New Issue
Block a user