Enables a device administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
Enables a device administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
Disables a device common administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
Disables a device common administrator application based on the specified bundle name and class name. This API uses an asynchronous callback to return the result.
| callback | AsyncCallback<DeviceSettingsManager> | Yes | Callback used to return the **DeviceSettingsManager** object obtained.|
| callback | AsyncCallback<[DeviceSettingsManager](js-apis-enterpriseDeviceManager-DeviceSettingsManager.md)> | Yes | Callback used to return the **DeviceSettingsManager** object obtained.|
**Example**
...
...
@@ -503,7 +503,7 @@ Obtains a **DeviceSettingsManager** object. This API uses a promise to return th
| Promise<DeviceSettingsManager> | Promise used to return the **DeviceSettingsManager** object obtained.|
| Promise<[DeviceSettingsManager](js-apis-enterpriseDeviceManager-DeviceSettingsManager.md)> | Promise used to return the **DeviceSettingsManager** object obtained.|
**Example**
...
...
@@ -536,7 +536,7 @@ Sets the enterprise information of a device administrator application. This API
| callback | AsyncCallback<[EnterpriseInfo](#EnterpriseInfo)> | Yes | Callback used to return the enterprise information of the device administrator application.|
| callback | AsyncCallback<[EnterpriseInfo](#enterpriseinfo)> | Yes | Callback used to return the enterprise information of the device administrator application.|
**Example**
...
...
@@ -648,7 +648,7 @@ Obtains the enterprise information of a device administrator application. This A
The **EnterpriseDeviceManager** module provides capabilities to manage device settings, such as time settings. The APIs of this module can only be called by enterprise device administrator applications.
> **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.
## Usage
Before calling any API in **EnterpriseDeviceManager**, use **getDeviceSettingsManager** to create an **EnterpriseDeviceManager** instance.
| callback | AsyncCallback<void> | Yes| Callback used to the result. If the system time is set successfully, **err** is **null**; otherwise, **err** is an error object.|