mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
openUrl added
This commit is contained in:
@ -130,4 +130,11 @@ export module ad {
|
||||
|
||||
export function GC() {
|
||||
gc();
|
||||
}
|
||||
|
||||
export function openUrl(url: string): void {
|
||||
var context = ad.getApplicationContext();
|
||||
if (context) {
|
||||
context.startActivity(new android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse(url)));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user