# Function: sendShareImage
▸ sendShareImage(params: SendShareImageContentParams): Promise‹SendShareImageRes›
发送分享图片(URL 格式)给好友(仅支持有乐)
# 参数:
| 属性 | 类型 |
|---|---|
params | SendShareImageContentParams |
SendShareImageContentParams
| 属性 | 类型 | 描述 |
|---|---|---|
imageContent | string | - |
complete? | Method | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail? | Method | 接口调用失败的回调函数 |
success? | Method | 接口调用成功的回调函数 |
# 返回值:
Promise‹SendShareImageRes›
▸ sendShareImage(params: SendShareImageParams): Promise‹SendShareImageRes›
发送分享图片(Base64 格式)给好友(仅支持有乐)
category 转发
# 参数:
| 属性 | 类型 |
|---|---|
params | SendShareImageParams |
SendShareImageParams
| 属性 | 类型 | 描述 |
|---|---|---|
imageUrl | string | - |
complete? | Method | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail? | Method | 接口调用失败的回调函数 |
success? | Method | 接口调用成功的回调函数 |
# 返回值:
Promise‹SendShareImageRes›
▸ sendShareImage(params: SendShareCustomImagesParams): Promise‹SendShareImageRes›
发送自定义分享图片给好友(仅支持有乐)
description 支持同时生成多张图片,发送时仅支持单张发送。
category 转发
# 参数:
| 属性 | 类型 |
|---|---|
params | SendShareCustomImagesParams |
SendShareCustomImagesParams
| 属性 | 类型 | 描述 |
|---|---|---|
defaultCardIndex? | number | 默认展示的分享图片卡片位置 |
imageCards | keyof CustomImageCard[] | 待创建并分享的图片卡片列表 |
complete? | Method | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail? | Method | 接口调用失败的回调函数 |
success? | Method | 接口调用成功的回调函数 |
# 返回值:
Promise‹SendShareImageRes›