Network Management Overview

Network management functions include:

Constraints

To use the functions of the network management module, you must obtain the permissions listed in the following table.

Permission Description
ohos.permission.GET_NETWORK_INFO Allows an application to obtain the network connection information.
ohos.permission.SET_NETWORK_INFO Allows an application to modify the network connection state.
ohos.permission.INTERNET Allows an application to open network sockets to connect to the network.