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

Share.sendMessage

함수형 API share로도 같은 기능을 쓸 수 있어요.

기능 설명

네이티브 공유 시트를 열어 메시지를 공유해요. message에 공유할 텍스트를 전달하면, 사용자가 선택할 수 있는 앱 목록이 표시돼요.

타입

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

Params

{
  message: string;
}

Response

없음.

예시 코드

JavaScript

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

await Share.sendMessage({ message: "공유할 메시지입니다." });

도움이 되었나요?