Files
WAI_Project_UNIX/uni_modules/cool-share/utssdk/interface.uts
2025-10-31 11:28:53 +08:00

30 lines
585 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export type ShareWithSystemOptions = {
/**
* 分享类型:
* text(文本) | image(图片) | video(视频) | audio(音频) | file(文件) | link(链接)
*/
type: string;
/**
* 分享标题
*/
title?: string;
/**
* 分享描述或内容
*/
summary?: string;
/**
* 分享资源路径:
* 如果是图片/视频/音频/文件填写资源路径或网络URL
* 如果是link填写链接地址
*/
url?: string;
/**
* 分享成功回调
*/
success?: () => void;
/**
* 分享失败回调,返回错误信息
*/
fail?: (error: string) => void;
};