my.call("qicardShareAppMessage")
Overview
Use this API to share app message..
Note:
Please make sure you use the Appx with 1.24.6 or higher versions in order to use this API.
Sample Code
copy
my.call("qicardShareAppMessage", {
title: 'title',
desc: '123',
path: 'https://www.alipay.com',
imageUrl:'https://lmg.jj20.com/up/allimg/tx29/081422581525140.jpg',
success: (res) => {
console.log('[from mini app], share call succeeded: ', JSON.stringify(res));
my.alert({content:"success" + JSON.stringify(res)})
},
fail: (res) => {
console.log('[from mini app], share call fail: ', JSON.stringify(res));
my.alert({content:"fail" + JSON.stringify(res)})
}
});
Parameters
Property | Type | Required | Description |
title | String | Yes | share title |
desc | String | No | share desc |
path | String | No | share path |
imageUrl | String | No | share imageUrl |
Success Callback Function
Property | Type | Description |
shareResult | Boolean | The result that indicates whether if the sharing is successful. |