本文整理匯總了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
);
});