native.share
弹出分享入口界面
- 调用方式
hbWallet.callAPI('native.share', param);
- param
{
type: 'url', //分享内容,默认url,[url|screen]后期可能分享其他的内容
title: '分享内容', //分享文本title
icon: 'https://www.itoken.com/icon.png', //分享图标url路径
url: 'https://www.itoken.com', //当分享类型为url时获取的链接
}
- 测试
hbWallet.callAPI('native.share', {
type: 'url',
title: 'hello world!!!', //分享文本title
icon: 'https://www.itoken.com/icon.png',
url: 'https://www.itoken.com'
});