目录

About This Kit

Network Kit provides the following functions:

Emulator Support

Network Kit supports the Emulator, but there are differences between the Emulator and real devices. The differences are as follows:

Constraints

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

Before requesting permissions, ensure that the basic principles for using permissions are met. Declare the permissions required by your application. For details, see Declaring Permissions in the Configuration File.

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