Chuyển tới nội dung chính

shareApp

shareApp là jsapi để mở share panel để chia sẻ content từ miniapp

Tham số

Thuộc tínhKiểu dữ liệuBắt buộcMô tả
titlestringTiêu đề của share popup
descstringDescription của share popup
pathstringPath path, route của page cần mở
urlstringUrl muốn share thay vì share universal link của app
successFunctionCallback function khi save hình ảnh thành công
failFunctionCallback function khi save image bất thành
completeFunctionCallback function khi gọi API hoàn tất bất kể việc save hình ảnh thành công hay thất bại.

Ví dụ

import apis from '@v-miniapp/apis'

apis.shareApp({
title: "Custom title",
desc: "Custom description",
path: "shareApp", // page router name
url: "https://your_url_here",
});