未验证 提交 9801960e 编写于 作者: O openharmony_ci 提交者: Gitee

!3996 Context中增加getArea和switchArea接口说明文档

Merge pull request !3996 from mingxihua/master
......@@ -103,6 +103,27 @@ switchArea(mode: AreaMode): void;
```
## Context.getArea()
getArea(): AreaMode;
获取文件分级信息,可以查看当前是处于哪个分区。
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
**返回值:**
| 类型 | 说明 |
| -------- | -------- |
| [AreaMode](#areamode) | 文件分区。 |
**示例:**
```js
let mode = this.context.getArea();
```
## AreaMode
访问的文件分区,每个文件分区有对应自己的内容。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册