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

客户端 SDK

Apps in Toss Web Mini App 中使用的公开 API 表面。目录结构就是这份参考文档的目录,导出的 API 都会在同一 depth 的 REFERENCE.md 中进行文档化。

结构

领域
说明

domains/

领域.动作 20 种接口 + 各成员的函数式(flat)API

events/

原生事件订阅总线 (graniteEvent · tdsEvent · appsInTossEvent)

使用方式

// 领域接口
import { Device } from "@apps-in-toss/web-framework";
await Device.openCamera();

// 函数式(flat)API — 与 v2 相同
import { openCamera } from "@apps-in-toss/web-framework";
await openCamera();

这有帮助吗?