diff --git a/en/application-dev/reference/apis/js-apis-enterprise-device-manager.md b/en/application-dev/reference/apis/js-apis-enterprise-device-manager.md index 3e5762750b71ceec5c3b6d852ecec054ef29ad1e..a690d40fbc0ef6273758e6aac2459cb94e19e959 100644 --- a/en/application-dev/reference/apis/js-apis-enterprise-device-manager.md +++ b/en/application-dev/reference/apis/js-apis-enterprise-device-manager.md @@ -1,7 +1,6 @@ # Enterprise Device Management -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> +> **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. @@ -28,12 +27,12 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | -| enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application.| -| type | [AdminType](#AdminType) | Yes| Type of the device administrator to activate.| -| callback | AsyncCallback\ | Yes| Callback used to return the result.| + | Name | Type | Mandatory | Description | + | -------- | -------- | -------- | -------- | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | + | enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. | + | type | [AdminType](#AdminType) | Yes | Type of the device administrator to activate. | + | callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** @@ -71,17 +70,17 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| -------------- | ---------------------------------------------- | ---- | ------------------------ | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | -| enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application.| -| type | [AdminType](#AdminType) | Yes | Type of the device administrator to activate. | + | Name | Type | Mandatory | Description | + | -------------- | ---------------------------------------------- | ---- | ------------------------ | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | + | enterpriseInfo | [EnterpriseInfo](#EnterpriseInfo) | Yes | Enterprise information of the device administrator application. | + | type | [AdminType](#AdminType) | Yes | Type of the device administrator to activate. | **Return value** -| Type | Description | -| ----------------- | --------------------------- | -| Promise\ | Promise used to return the result.| + | Type | Description | + | ----------------- | --------------------------- | + | Promise\ | Promise used to return the result. | **Example** @@ -118,10 +117,10 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------------------- | ---- | ------------------------------ | -| admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------------------- | ---- | ------------------------------ | + | admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application. | + | callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** @@ -157,15 +156,15 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ---------------------------------------------- | ---- | ------------------ | -| admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application.| + | Name | Type | Mandatory | Description | + | ------ | ---------------------------------------------- | ---- | ------------------ | + | admin | [Want](js-apis-application-Want.md) | Yes | Device common administrator application. | **Return value** -| Type | Description | -| ----------------- | --------------------------- | -| Promise\ | Promise used to return the result.| + | Type | Description | + | ----------------- | --------------------------- | + | Promise\ | Promise used to return the result. | **Example** @@ -193,10 +192,10 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ----------------------- | ---- | ------------------------------ | -| bundleName | String | Yes | Bundle name of a device super administrator application. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| + | Name | Type | Mandatory | Description | + | ---------- | ----------------------- | ---- | ------------------------------ | + | bundleName | String | Yes | Bundle name of a device super administrator application. | + | callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** @@ -223,15 +222,15 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------ | ---- | ------------------------ | -| bundleName | String | Yes | Bundle name of a device super administrator application.| + | Name | Type | Mandatory | Description | + | ---------- | ------ | ---- | ------------------------ | + | bundleName | String | Yes | Bundle name of a device super administrator application. | **Return value** -| Type | Description | -| ----------------- | --------------------------- | -| Promise\ | Promise used to return the result.| + | Type | Description | + | ----------------- | --------------------------- | + | Promise\ | Promise used to return the result. | **Example** @@ -256,10 +255,10 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------------------------------- | ---- | -------------------------------- | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| + | Name | Type | Mandatory | Description | + | -------- | ---------------------------------------------- | ---- | -------------------------------- | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | + | callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** @@ -291,15 +290,15 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ---------------------------------------------- | ---- | -------------- | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application.| + | Name | Type | Mandatory | Description | + | ------ | ---------------------------------------------- | ---- | -------------- | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | **Return value** -| Type | Description | -| ----------------- | ------------------------------- | -| Promise\ | Promise used to return the result.| + | Type | Description | + | ----------------- | ------------------------------- | + | Promise\ | Promise used to return the result. | **Example** @@ -327,10 +326,10 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ----------------------- | ---- | -------------------------------- | -| bundleName | String | Yes | Bundle name of a device super administrator application. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| + | Name | Type | Mandatory | Description | + | ---------- | ----------------------- | ---- | -------------------------------- | + | bundleName | String | Yes | Bundle name of a device super administrator application. | + | callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** @@ -359,15 +358,15 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------ | ---- | ------------------ | -| bundleName | String | Yes | Bundle name of a device super administrator application.| + | Name | Type | Mandatory | Description | + | ---------- | ------ | ---- | ------------------ | + | bundleName | String | Yes | Bundle name of a device super administrator application. | **Return value** -| Type | Description | -| ----------------- | ------------------------------- | -| Promise\ | Promise used to return the result.| + | Type | Description | + | ----------------- | ------------------------------- | + | Promise\ | Promise used to return the result. | **Example** @@ -392,9 +391,9 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback; | Callback used to return the result.| + | Type | Description | + | ------------------ | ----------------------------------- | + | Promise\; | Callback used to return the result. | **Example** @@ -545,10 +544,10 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------ | ---- | ---------------------------------------- | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | -| callback | AsyncCallback<[EnterpriseInfo](#EnterpriseInfo)> | Yes | Callback used to return the enterprise information of the device administrator application.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------------------------------------ | ---- | ---------------------------------------- | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | + | callback | AsyncCallback<[EnterpriseInfo](#EnterpriseInfo)> | Yes | Callback used to return the enterprise information of the device administrator application. | **Example** @@ -580,15 +579,15 @@ SystemCapability.Customation.EnterpriseDeviceManager **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ---------------------------------------------- | ---- | -------------- | -| admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application.| + | Name | Type | Mandatory | Description | + | ------ | ---------------------------------------------- | ---- | -------------- | + | admin | [Want](js-apis-application-Want.md) | Yes | Device administrator application. | **Return value** -| Type | Description | -| ------------------------------------------------ | ------------------------------------------- | -| Promise<[EnterpriseInfo](#EnterpriseInfo)> | Promise used to return the enterprise information of the device administrator application.| + | Type | Description | + | ------------------------------------------------ | ------------------------------------------- | + | Promise<[EnterpriseInfo](#EnterpriseInfo)> | Promise used to return the enterprise information of the device administrator application. | **Example** @@ -613,10 +612,10 @@ Describes the enterprise information of a device administrator application. SystemCapability.Customation.EnterpriseDeviceManager -| Name | Readable/Writable| Type | Mandatory| Description | -| ----------- | -------- | ------ | ---- | ---------------------------------- | -| name | Read only | string | Yes | Name of the enterprise to which the device administrator application belongs.| -| description | Read only | string | Yes | Description of the enterprise to which the device administrator application belongs.| + | Name | Readable/Writable | Type | Mandatory | Description | + | ----------- | -------- | ------ | ---- | ---------------------------------- | + | name | Read only | string | Yes | Name of the enterprise to which the device administrator application belongs. | + | description | Read only | string | Yes | Description of the enterprise to which the device administrator application belongs. | ## AdminType @@ -627,7 +626,7 @@ Enumerates the administrator types of the device administrator application. SystemCapability.Customation.EnterpriseDeviceManager -| Name| Default Value| Description| -| -------- | -------- | -------- | -| ADMIN_TYPE_NORMAL | 0x00 | Common administrator.| -| ADMIN_TYPE_SUPER | 0x01 | Super administrator.| + | Name | Default Value | Description | + | -------- | -------- | -------- | + | ADMIN_TYPE_NORMAL | 0x00 | Common administrator. | + | ADMIN_TYPE_SUPER | 0x01 | Super administrator. |