# wx.showShareImageMenu(Object object)

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

with Promise style call: Supported

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

Open the pop-up window to share pictures, you can send pictures to friends, collection or download

# parameter

# Object object

attribute type Default values Required Introductions
path string yes Image addresses to share must be local or temporary
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)

# sample code


 wx.downloadFile({
   url: 'https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg',
   success: (res) => {
     wx.showShareImageMenu({
       path: res.tempFilePath
     })
   }
 })