title: Taro.updateShareMenu(option)
sidebar_label: updateShareMenu
Updates the forwarding properties.
Type
(option: Option) => Promise<CallbackResult>
Parameters
Option
Property | Type | Required | Description |
---|---|---|---|
activityId | string |
No | The activityId of an updatable message, which is obtained via updatableMessage.createActivityId API |
isUpdatableMessage | boolean |
No | Indicates whether it is an updatable message. For details, seeUpdatable Message |
templateInfo | UpdatableMessageFrontEndTemplateInfo |
No | Template information for updatable messages |
withShareTicket | boolean |
No | Indicates whether to forward with shareTicket.Detail |
complete | (res: any) => void |
No | The callback function used when the API call completed (always executed whether the call succeeds or fails) |
fail | (res: any) => void |
No | The callback function for a failed API call |
success | (res: Result) => void |
No | The callback function for a successful API call |
UpdatableMessageFrontEndTemplateInfo
object.templateInfo is composed as follows
Property | Type | Description |
---|---|---|
parameterList | UpdatableMessageFrontEndParameter[] |
Parameter list |
UpdatableMessageFrontEndParameter
Parameter list
Property | Type | Description |
---|---|---|
name | string |
Parameter name |
value | string |
Parameter value |
Sample Code
Taro.updateShareMenu({
withShareTicket: true,
success () { }
})
API Support
API | WeChat Mini-Program | H5 | React Native |
---|---|---|---|
Taro.updateShareMenu | ✔️ |