diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index bd0ec7d6430abfd91089edfe6f7f4f4fd814e12c..4aa5c61a10611324abe752c2a74cfd81af4af67b 100755 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -104,6 +104,7 @@ - [@ohos.configPolicy (配置策略)](js-apis-config-policy.md) - [@ohos.enterpriseDeviceManager (企业设备管理)](js-apis-enterprise-device-manager.md) + - [@ohos.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)](js-apis-EnterpriseAdminExtensionAbility.md) - 安全 - [@ohos.abilityAccessCtrl (访问控制管理)](js-apis-abilityAccessCtrl.md) diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md index 3823eda73543a86d4a5d226682eb500ac459a2bf..38014d3845bda72fd39adbee007de0a216eee1db 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -1830,7 +1830,8 @@ ExtensionAbility的类型 | FILE_SHARE9+ | 6 | ExtensionAbility的类型包括文件共享 | | STATIC_SUBSCRIBER9+ | 7 | ExtensionAbility的类型包括订阅者 | | WALLPAPER9+ | 8 | ExtensionAbility的类型包括墙纸 | -| BACKUP9+ | 9 | ExtensionAbility的类型包括数据备份恢复 | +| BACKUP9+ | 9 | ExtensionAbility的类型包括数据备份恢复 | +| ENTERPRISE_ADMIN9+ | 11 | ExtensionAbility的类型包括企业管理员 | | UNSPECIFIED9+ | 20 | ExtensionAbility未指定类型 | ## ExtensionFlag9+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md new file mode 100644 index 0000000000000000000000000000000000000000..e8a0380bda998e814a9e3732f1f7afffccff9914 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md @@ -0,0 +1,48 @@ +# EnterpriseAdminExtentionAbility + +EnterpriseAdminExtentionAbility模块提供企业管理员应用扩展相关接口。 + +> **说明:** +> +> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块接口仅可在Stage模型下使用。 +## 导入模块 + +```ts +import EnterpriseAdminExtentionAbility from '@ohos.EnterpriseAdminExtentionAbility' +``` + +## EnterpriseAdminExtentionAbility.onAdminEnabled + +onAdminEnabled(): void + +设备管理员被激活事件回调。 + +**系统能力**:SystemCapability.Customation.EnterpriseDeviceManager + +**示例:** + + ```ts +export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbility { + onAdminEnabled() { + } +}; + ``` + +## EnterpriseAdminExtentionAbility.onAdminDisabled + +onAdminDisabled(): void + +设备管理员被去激活事件回调。 + +**系统能力**:SystemCapability.Customation.EnterpriseDeviceManager + +**示例:** + + + ```ts +export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbility { + onAdminDisabled() { + } +}; + ``` \ No newline at end of file