本文整理汇总了TypeScript中@ionic-native/social-sharing.SocialSharing.shareViaEmail方法的典型用法代码示例。如果您正苦于以下问题:TypeScript SocialSharing.shareViaEmail方法的具体用法?TypeScript SocialSharing.shareViaEmail怎么用?TypeScript SocialSharing.shareViaEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@ionic-native/social-sharing.SocialSharing
的用法示例。
在下文中一共展示了SocialSharing.shareViaEmail方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
]).subscribe(translations => {
this.socialSharing.shareViaEmail(
translations["SETTINGS.FEEDBACK.EMAIL.FEATURE"],
translations["SETTINGS.FEEDBACK.EMAIL.FEATURE_TITLE"],
["methoappeei@gmail.com"],
[],
[],
null
);
});
示例2:
handler: () => {
this.socialSharing.shareViaEmail(
`<b>${translations["REPORT.DESC"]}</b><br><br><br>
<b>${translations["REPORT.DO_NOT_EDIT"]}</b><br>
${diags}</p><br>
${errStr}<br>
${stacktrace}`,
translations["REPORT.ERROR"],
["methoappeei@gmail.com"],
[],
[],
[]
).then(() => {
this.askForRefresh();
});
}
示例3: setTimeout
setTimeout(() => {
this.onGoingProcessProvider.clear();
let appName = this.appProvider.info.nameCase;
let body: string = appName + ' Wallet "' + this.walletName + '" Addresses\n Only Main Addresses are shown.\n\n';
body += "\n";
body += this.allAddresses.map((v) => {
return ('* ' + v.address + ' xpub' + v.path.substring(1) + ' ' + this.formatDate(v.createdOn));
}).join("\n");
this.socialSharing.shareViaEmail(
body,
appName + ' Addresses',
null, // TO: must be null or an array
null, // CC: must be null or an array
null, // BCC: must be null or an array
null, // FILES: can be null, a string, or an array
);
});