未验证 提交 24bedeaf 编写于 作者: O openharmony_ci 提交者: Gitee

!7149 翻译完成:6482 添加EnterpriseAdminExtentionAbility模块描述

Merge pull request !7149 from wusongqing/TR6482
# EnterpriseAdminExtentionAbility
# EnterpriseAdminExtensionAbility
The **EnterpriseAdminExtentionAbility** module provides APIs for Extension abilities of enterprise administrators.
The **EnterpriseAdminExtensionAbility** module provides Extension abilities for enterprise administrators.
To have the capabilities provided by the module, for example, receiving the application activation or deactivation notification sent by the system, an enterprise administrator application must have an **EnterpriseAdminExtensionAbility** instance and override the APIs in it.
> **NOTE**
>
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>
> The APIs of this module can be used only in the stage model.
## Modules to Import
```ts
import EnterpriseAdminExtentionAbility from '@ohos.EnterpriseAdminExtentionAbility'
import EnterpriseAdminExtensionAbility from '@ohos.EnterpriseAdminExtensionAbility'
```
## EnterpriseAdminExtentionAbility.onAdminEnabled
## EnterpriseAdminExtensionAbility.onAdminEnabled
onAdminEnabled(): void
......@@ -22,14 +26,14 @@ Called when an enterprise administrator is enabled.
**Example**
```ts
```ts
export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbility {
onAdminEnabled() {
}
onAdminEnabled() {
}
};
```
```
## EnterpriseAdminExtentionAbility.onAdminDisabled
## EnterpriseAdminExtensionAbility.onAdminDisabled
onAdminDisabled(): void
......@@ -38,11 +42,10 @@ Called when an enterprise administrator is disabled.
**System capability**: SystemCapability.Customization.EnterpriseDeviceManager
**Example**
```ts
```ts
export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbility {
onAdminDisabled() {
}
onAdminDisabled() {
}
};
```
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册