# wx.updateShareMenu(Object object)

Start from base library version 1.2.0. Please remaining backward compatible.

with Promise style call: Supported

Need page permissions: Mini Programs cannot call this interface from a plugin page, and plugins cannot call the interface from the plugins page

Mini Program plugin: Support, need to Mini Program base library version no less than 2.1.0

When used in Mini Programs plug-ins, can only be called from the page of the current plug-in

Update Forwarding Properties

# parameter

# Object object

attribute type Default values Required Introductions Minimum version
withShareTicket boolean false no Whether to use belts shareTicket Retweetdetails
isUpdatableMessage boolean false no Is it a dynamic message? SeeDynamic message 2.4.0
activityId string no Dynamic message activityId。 adopt updatableMessage.createActivityId Interface acquisition 2.4.0
toDoActivityId string no Group to do message id, toDoActivityId can aggregate multiple group to a single message. adopt updatableMessage.createActivityId Interface fetch. See for detailsGroup Backlog Message 2.11.0
templateInfo Object no Template information for dynamic messages 2.4.0
isPrivateMessage boolean no If it's private. See for details Mini Program private message 2.13.0
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

object.templateInfo Structure

attribute type Default values Required Introductions
parameterList Array.&ltObject&gt yes List of parameters

parameterList Structure

attribute type Default values Required Introductions
name string yes Parameter name
value string yes Parameter values

# sample code

wx.updateShareMenu({
  withShareTicket: true,
  success () { }
})
// Forwarding private messages
wx.updateShareMenu({
  isPrivateMessage: true,
  activityId: 'xxx',
  templateInfo: {},
  success () { },
  fail () {}
})