# wx.updateShareMenu(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
Updates the forwarding properties.
# Parameters
# Object object
Property | Type | Default Value | Required | Description | Minimum Version |
---|---|---|---|---|---|
withShareTicket | boolean | false | No | Indicates whether to forward with shareTicket. Details | |
isUpdatableMessage | boolean | false | No | Indicates whether it is an updatable message. For details, see Updatable Message. | 2.4.0 |
activityId | string | No | The activityId of an updatable message, which is obtained via updatableMessage.createActivityId API. | 2.4.0 | |
templateInfo | Object | No | Template information for updatable messages | 2.4.0 | |
success | function | No | The callback function for a successful API call | ||
fail | function | No | The callback function for a failed API call | ||
complete | function | No | The callback function used when the API call completed (always executed whether the call succeeds or fails) |
object.templateInfo is composed as follows
Attribute | Type | Default | Required | Description |
---|---|---|---|---|
parameterList | Array.<Object> | Yes | Parameter list |
parameterList is composed as follows
Attribute | Type | Default | Required | Description |
---|---|---|---|---|
name | string | Yes | Parameter name | |
value | string | Yes | Parameter value |
# Sample Code
wx.updateShareMenu({
withShareTicket: true,
success () { }
})