NetworkUtils

class NetworkUtils(context: Context)

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
Link copied to clipboard

Whether Android has confirmed that the active network actually reaches the internet - the check behind "connected, no internet". Unlike hasNetwork this is false on Wi-Fi behind a captive portal, or with DNS that never answers, which is where a network request would otherwise sit until its timeout. True through a VPN whose underlying network is validated.