For the complete documentation index, see llms.txt. This page is also available as Markdown.

Share.sendMessage

函数式 API 分享也可以通过它使用相同的功能。

功能说明

打开原生分享面板来分享消息。 消息传入要分享的文本时,会显示用户可选择的应用列表。

类型

Share.sendMessage(message: { message: string }): Promise<void>;

Params

{
  message: string;
}

Response

无。

示例代码

JavaScript

import { Share } from "@apps-in-toss/web-framework";

await Share.sendMessage({ message: "这是要分享的消息。" });

这有帮助吗?