Network

class Network

This class provides network status information.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getType(): Int
Reports the type of network to which the info in this NetworkInfo pertains.
Link copied to clipboard
open fun getTypeName(): String
Return a human-readable name describe the type of the network, for example "WIFI" or "MOBILE".
Link copied to clipboard
open fun isConnected(): Boolean
Indicates whether network connectivity exists and it is possible to establish connections and pass data.