未验证 提交 7b0159ef 编写于 作者: L Lotol 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md.

Signed-off-by: NLotol <linxiangzhi@huawei.com>
上级 fc66788e
......@@ -643,9 +643,9 @@ defaultAppMgr.resetDefaultApplication("image/png", (err, data) => {
});
```
## defaultAppMgr.isDefaultApplicationSync
## defaultAppMgr.isDefaultApplicationSync<sup>10+</sup>
isDefaultApplication(type: string): boolean
isDefaultApplicationSync(type: string): boolean;
以同步方法根据系统已定义的应用类型判断当前应用是否是该应用类型的默认应用,使用boolean形式返回结果。
......@@ -676,9 +676,9 @@ defaultAppMgr.isDefaultApplicationSync(defaultAppMgr.ApplicationType.BROWSER)
});
```
## defaultAppMgr.getDefaultApplicationSync
## defaultAppMgr.getDefaultApplicationSync<sup>10+</sup>
getDefaultApplicationSync(type: string, userId?: number): [BundleInfo]
getDefaultApplicationSync(type: string, userId?: number): BundleInfo;
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型获取默认应用信息,使用BundleInfo返回结果。
......@@ -732,9 +732,9 @@ defaultAppMgr.getDefaultApplicationSync("image/png")
});
```
## defaultAppMgr.setDefaultApplicationSync
## defaultAppMgr.setDefaultApplicationSync<sup>10+</sup>
setDefaultApplicationSync(type: string, elementName: ElementName, userId?: number): [void]
setDefaultApplicationSync(type: string, elementName: ElementName, userId?: number): void;
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型设置默认应用,返回undefined。
......@@ -804,9 +804,9 @@ defaultAppMgr.setDefaultApplicationSync("image/png", {
});
```
## defaultAppMgr.resetDefaultApplicationSync
## defaultAppMgr.resetDefaultApplicationSync<sup>10+</sup>
resetDefaultApplicationSync(type: string, userId?: number): [void]
resetDefaultApplicationSync(type: string, userId?: number): void;
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型重置默认应用,使用undefined形式返回结果。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册