本文整理汇总了TypeScript中ionic-native.SocialSharing.share方法的典型用法代码示例。如果您正苦于以下问题:TypeScript SocialSharing.share方法的具体用法?TypeScript SocialSharing.share怎么用?TypeScript SocialSharing.share使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-native.SocialSharing
的用法示例。
在下文中一共展示了SocialSharing.share方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: share
share() {
let message = 'I love playing Scripture Golf! You should download it too! #ScriptureGolf';
SocialSharing.share(message, 'Scripture Golf', SG_IMAGE_URL, 'https://www.facebook.com/ldsscripturegolf/').then(() => {
console.log('Shared');
}).catch(() => {
this.toastService.showToast('Cannot share at this time');
});
}
示例2: shareArticle
shareArticle(article?: Article) {
SocialSharing.share(
this.config.social.message,
this.config.social.subject,
this.article.picture,
'http://www.google.com'
);
}
示例3:
.then((data) => {
SocialSharing.share(
'老豆家谱',
'老豆家谱',
data,
'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
);
this.backService.touch();
this.backService.trackAction('node', 'shareQr');
});
示例4: shareText
shareText() {
this.fab.close();
SocialSharing.share(
nodeToStr(this.selectNode),
this.familyTree.title,
null
);
this.backService.touch();
this.backService.trackAction('node', 'shareText');
}
示例5: share
share() {
console.log( this.selectedItem.title.rendered, this.selectedItem.link );
SocialSharing.share( this.selectedItem.title.rendered, null, null, this.selectedItem.link ).then(() => {
// Sharing via email is possible
}).catch(() => {
// Sharing via email is not possible
});
}
示例6: shareLink
shareLink() {
this.fab.close();
SocialSharing.share(
'老豆家谱',
this.familyTree.title,
null,
'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
);
this.backService.touch();
this.backService.trackAction('node', 'shareLink');
}
示例7: shareIt
shareIt() {
SocialSharing.share("我现在使用Growth,这是一款专注于Web开发者成长的应用,涵盖Web开发的流程及技术栈,Web开发的学习路线、成长衡量等各方面。快来下载吧!", "", "", "http://growth.ren/");
}
示例8: share
private share(url: string) {
SocialSharing.share('Looking for a job?', null, null, url);
}
示例9: share
share(post) {
SocialSharing.share(null, post.title.rendered, null, post.link)
}