NetworkCollector
A device collector that gathers network connectivity information from the Android device.
This collector determines whether the device currently has an active internet connection by checking network capabilities and connectivity status. It uses different approaches based on the Android API level to ensure compatibility across device versions.
Required Permissions:
API Compatibility:
Android 10+ (API 29+): Uses NetworkCapabilities for modern network state checking
See also
for the data structure containing connectivity status
Functions
Link copied to clipboard
Collects the current network connectivity status of the device.