未验证 提交 741648a8 编写于 作者: L Lotol 提交者: Gitee

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

Signed-off-by: NLotol <linxiangzhi@huawei.com>
上级 f8d1dee5
......@@ -539,7 +539,7 @@ defaultAppMgr.setDefaultApplication("image/png", {
setDefaultApplicationSync(type: string, elementName: ElementName, userId?: number): void;
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型设置默认应用,返回undefined
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型设置默认应用。
**需要权限:** ohos.permission.SET_DEFAULT_APPLICATION
......@@ -555,12 +555,6 @@ setDefaultApplicationSync(type: string, elementName: ElementName, userId?: numbe
| elementName | [ElementName](js-apis-bundle-ElementName.md) | 是 | 要设置为默认应用的组件信息。 |
| userId | number | 否 | 用户ID。默认值:调用方所在用户。 |
**返回值:**
| 类型 | 说明 |
| ------ | ---------------------------------- |
| void | undefined对象,无返回结果的undefined对象。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)
......@@ -760,7 +754,7 @@ defaultAppMgr.resetDefaultApplication("image/png", (err, data) => {
resetDefaultApplicationSync(type: string, userId?: number): void;
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型重置默认应用,使用undefined形式返回结果
以同步方法根据系统已定义的应用类型或者符合媒体类型格式(type/subtype)的文件类型重置默认应用。
**需要权限:** ohos.permission.SET_DEFAULT_APPLICATION
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册