本文整理匯總了TypeScript中utils/utils.openUrl函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript openUrl函數的具體用法?TypeScript openUrl怎麽用?TypeScript openUrl使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了openUrl函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: itemTap
export function itemTap(args) {
const article: firebase.Article = firebase.viewModel.news[args.index];
article.isRead = true;
if (article.url) {
utils.openUrl(article.url);
}
}
示例2: if
}).then(result => {
if (result == true) {
let appStore = "";
if (Application.android) {
let androidPackageName = this.configuration.androidPackageId ? this.configuration.androidPackageId : Application.android.packageName;
let uri = android.net.Uri.parse("market://details?id=" + androidPackageName);
let myAppLinkToMarket = new android.content.Intent(android.content.Intent.ACTION_VIEW, uri);
// Launch the PlayStore
Application.android.foregroundActivity.startActivity(myAppLinkToMarket);
} else if (Application.ios) {
appStore = "itms-apps://itunes.apple.com/en/app/id" + this.configuration.iTunesAppId;
}
Utility.openUrl(appStore);
} else if (result == false) {
// Decline
} else {
ApplicationSettings.setNumber(this.configuration.id, 0);
}
});
示例3: blog
blog() {
openUrl("http://anchorage1770.com/blog/");
}
示例4: twitter
twitter() {
openUrl("https://twitter.com/Anchorage1770");
}
示例5: instagram
instagram() {
openUrl("https://www.instagram.com/anchorage1770/");
}
示例6: facebook
facebook() {
console.log("pressing facebook");
openUrl("https://www.facebook.com/anchorage1770/");
}
示例7: tap
public tap() {
console.log("Tap");
utils.openUrl("http://www.master.technology");
}