The **accountManager** module provides account management capabilities for enterprise devices. Only the enterprise device administrator applications can call the APIs provided by this module.
The **accountManager** module provides APIs for account management of enterprise devices. Only the device administrator applications can call the APIs provided by this module.
> **NOTE**
>
...
...
@@ -16,7 +16,7 @@ import accountManager from '@ohos.enterprise.accountManager';
| disallow | boolean | Yes | Whether to disallow local accounts. The value **true** means disallow local accounts; the value **false** means the opposite. |
| disallow | boolean | Yes | Whether to forbid the creation of local user accounts. The value **true** means that local user accounts cannot be created; the value **false** means the opposite. |
| callback | AsyncCallback<void> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null**. Otherwise, **err** is an error object. |
**Error codes**
For details about the error codes, see [Enterprise Device Management Error Codes](../errorcodes/errorcode-enterpriseDeviceManager.md).
| disallow | boolean | Yes | Whether to disallow local accounts. The value **true** means disallow local accounts; the value **false** means the opposite. |
| disallow | boolean | Yes | Whether to forbid the creation of local user accounts. The value **true** means that local user accounts cannot be created; the value **false** means the opposite. |
The **networkManager** module provides network management capabilities for enterprise devices, including obtaining the device IP address and MAC address. Only the enterprise device administrator applications can call the APIs provided by this module.
The **networkManager** module provides APIs for network management of enterprise devices, including obtaining the device IP address and MAC address. Only the device administrator applications can call the APIs provided by this module.
> **NOTE**
>
...
...
@@ -16,7 +16,7 @@ import networkManager from '@ohos.enterprise.networkManager';
| callback | AsyncCallback<Array<string>> | Yes | Callback invoked to return the active network interfaces obtained. |
| admin | [Want](js-apis-app-ability-want.md) | Yes | Device administrator application that obtains the information. |
| callback | AsyncCallback<Array<string>> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null** and **data** is an array of network interfaces obtained. If the operation fails, **err** is an error object. |
**Error codes**
For details about the error codes, see [Enterprise Device Management Error Codes](../errorcodes/errorcode-enterpriseDeviceManager.md).
Obtains the IP address of a device. This API uses an asynchronous callback to return the result.
Obtains the device IP address based on the given network interface through a device administrator application. This API uses an asynchronous callback to return the result.
| callback | AsyncCallback<string> | Yes | Callback invoked to return the device IP address obtained. |
| callback | AsyncCallback<string> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null** and **data** is the IP address obtained. If the operation fails, **err** is an error object. |
**Error codes**
For details about the error codes, see [Enterprise Device Management Error Codes](../errorcodes/errorcode-enterpriseDeviceManager.md).
Obtains the IP address of a device. This API uses a promise to return the result.
Obtains the device IP address based on the given network interface through a device administrator application. This API uses a promise to return the result.
Obtains the MAC address of a device. This API uses an asynchronous callback to return the result.
Obtains the device MAC address based on the given network interface through a device administrator application. This API uses an asynchronous callback to return the result.
| callback | AsyncCallback<string> | Yes | Callback invoked to return the device MAC address obtained. |
| callback | AsyncCallback<string> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null** and **data** is the MAC address obtained. If the operation fails, **err** is an error object. |
**Error codes**
For details about the error codes, see [Enterprise Device Management Error Codes](../errorcodes/errorcode-enterpriseDeviceManager.md).
Obtains the MAC address of a device. This API uses a promise to return the result.
Obtain the device MAC address based on the given network interface through a device administrator application. This API uses a promise to return the result.
The **wifiManager** module provides Wi-Fi management capabilities for enterprise devices. Only the enterprise device administrator applications can call the APIs provided by this module.
The **wifiManager** module provides APIs for Wi-Fi management of enterprise devices. Only the device administrator applications can call the APIs provided by this module.
> **NOTE**
>
...
...
@@ -16,7 +16,7 @@ import wifiManager from '@ohos.enterprise.wifiManager';