本文整理汇总了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");
}