diff --git a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md index e96761371258c9fd258f11dc2548b49c8e7f9916..acae6ff2616be12a456941908d5df5364e7029f6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md @@ -24,6 +24,8 @@ onAdminEnabled(): void **系统能力**:SystemCapability.Customization.EnterpriseDeviceManager +**系统API**: 此接口为系统接口。 + **示例:** ```ts @@ -41,6 +43,8 @@ onAdminDisabled(): void **系统能力**:SystemCapability.Customization.EnterpriseDeviceManager +**系统API**: 此接口为系统接口。 + **示例:** ```ts diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md index 681b3c000ba40140b3cec3345ee3f42f47e17ae0..7d398a3fb960b47d01a848b2a2212a021932b843 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md @@ -39,9 +39,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callba | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -91,9 +91,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -148,9 +148,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -194,7 +194,7 @@ disableAdmin(admin: Want, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -238,7 +238,7 @@ disableAdmin(admin: Want, userId: number, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -287,7 +287,7 @@ disableAdmin(admin: Want, userId?: number): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -326,7 +326,7 @@ disableSuperAdmin(bundleName: String, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -371,7 +371,7 @@ disableSuperAdmin(bundleName: String): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -399,14 +399,6 @@ isAdminEnabled(admin: Want, callback: AsyncCallback\): void | admin | [Want](js-apis-application-Want.md) | 是 | 设备管理员应用 | | callback | AsyncCallback\ | 是 | callback方式返回是否处于激活状态 | -**错误码**: - -以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) - -| 错误码ID | 错误信息 | -| ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | - **示例**: ```js @@ -583,7 +575,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCa | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -636,7 +628,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise\; | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -677,7 +669,7 @@ getEnterpriseInfo(admin: Want, callback: AsyncCallback<EnterpriseInfo>): v | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -724,7 +716,7 @@ getEnterpriseInfo(admin: Want): Promise<EnterpriseInfo> | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -764,9 +756,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\, callback **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + |错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -812,9 +805,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\): Promise **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -854,9 +848,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\, callba **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -902,9 +897,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\): Promi **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -930,7 +926,7 @@ adminManager.unsubscribeManagedEvent(wantTemp, events).then(() => { **系统API**: 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | -| ----------- | ---- ----| ---- | ----- | ------------------------------- | +| ----------- | --------| ---- | ----- | ------------------------------- | | name | string | 是 | 否 | 表示设备管理员应用所属企业的名称。 | | description | string | 是 | 否 | 表示设备管理员应用所属企业的描述。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md index d15fc90d56ab9cc65a6a1b18bb5f3f385a7e7b5d..a38944747f869a15b0c9c847f281b8049052a3ca 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md @@ -38,8 +38,8 @@ setDateTime(admin: Want, time: number, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | -| 9200002 | The administrator application does not have permission to manage the device. | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | **示例:** @@ -86,8 +86,8 @@ setDateTime(admin: Want, time: number): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | -| 9200002 | The administrator application does not have permission to manage the device. | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | **示例:**