> For the complete documentation index, see [llms.txt](https://developers-apps-in-toss.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers-apps-in-toss.toss.im/documentation/api-and-sdk-zh/sdk/domains-api.md).

# Domains API

函数式（flat）API的 **领域.动作** 打包成形式的公开接口。函数式 API 可以照常使用，领域接口则将相同实现按领域单元分组后额外提供。

文档结构完全沿用这个目录结构——领域目录中的 REFERENCE.md 是概览， `领域/成员/REFERENCE.md`是成员详情。

### 领域列表

| 域名                                                                            | 说明                   |
| ----------------------------------------------------------------------------- | -------------------- |
| [广告](/documentation/api-and-sdk-zh/sdk/domains-api/guang-gao.md)              | 插屏·AdMob·横幅广告        |
| [分析](/documentation/api-and-sdk-zh/sdk/domains-api/fen-xi.md)                 | 分析日志·屏幕日志            |
| [剪贴板](/documentation/api-and-sdk-zh/sdk/domains-api/jian-tie-ban.md)          | 剪贴板读/写               |
| [设备](/documentation/api-and-sdk-zh/sdk/domains-api/she-bei.md)                | 设备·权限·位置·媒体          |
| [环境](/documentation/api-and-sdk-zh/sdk/domains-api/huan-jing.md)              | 运行环境·版本·网络           |
| [File](/documentation/api-and-sdk-zh/sdk/domains-api/wen-jian.md)             | 文件保存·PDF 查看器         |
| [Game](/documentation/api-and-sdk-zh/sdk/domains-api/you-xi.md)               | Game Center 排行榜·个人资料 |
| [IAP](/documentation/api-and-sdk-zh/sdk/domains-api/ying-yong-nei-gou-mai.md) | 应用内支付                |
| [Notification](/documentation/api-and-sdk-zh/sdk/domains-api/tong-zhi.md)     | 通知同意                 |
| [权限](/documentation/api-and-sdk-zh/sdk/domains-api/quan-xian.md)              | 设备权限查询·请求            |
| [Promotion](/documentation/api-and-sdk-zh/sdk/domains-api/cu-xiao.md)         | 促销奖励·邀请好友            |
| [Review](/documentation/api-and-sdk-zh/sdk/domains-api/ping-jia.md)           | 应用内评价请求              |
| [安全区域](/documentation/api-and-sdk-zh/sdk/domains-api/safe-area.md)            | 安全区域 insets 查询·订阅    |
| [Screen](/documentation/api-and-sdk-zh/sdk/domains-api/ping-mu.md)            | 屏幕控制                 |
| [分享](/documentation/api-and-sdk-zh/sdk/domains-api/fen-xiang.md)              | 分享链接·分享表单            |
| [Storage](/documentation/api-and-sdk-zh/sdk/domains-api/cun-chu.md)           | 本地存储                 |
| [TossAuth](/documentation/api-and-sdk-zh/sdk/domains-api/tossauth.md)         | Toss 登录·签名           |
| [TossPay](/documentation/api-and-sdk-zh/sdk/domains-api/tosspay.md)           | Toss Pay 支付认证        |
| [用户](/documentation/api-and-sdk-zh/sdk/domains-api/yong-hu.md)                | 用户密钥·同意数据·年龄         |

### 与函数式 API 的关系

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

// 领域接口 — 将相同实现按领域.操作
import { User } from "@apps-in-toss/web-framework";
await User.getAnonymousKey();
```

在不支持的 Toss App 版本中调用领域成员时 `undefined`不会返回 `UNSUPPORTED_APP_VERSION` 错误 **throw**会这样做（函数式 API 会保持现有（v2）行为不变）。该成员 `isSupported()`可通过 预先确认。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers-apps-in-toss.toss.im/documentation/api-and-sdk-zh/sdk/domains-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
