The Android Connection Manager helps you detect when a device is connected to a network or loses connection. It provides a simple way to listen for connectivity changes and receive updates on network capabilities. With this package, you can easily detect the current connection state of your device and respond accordingly.
Key features include:
- Detect when the device is connected to a network
- Detect when the network connection is lost
- Receive updates when the network's capabilities are updated (wifi, cellular, ethernet, signal strength, etc.)
- Easy to use with well-documented code
This package supports only Android devices and is easy to integrate into your project.
To use this package, you can:
- Register a connectivity listener
- Subscribe to different types of callbacks:
+ OnNetworkAvailable: when the device is connected to a network
+ OnNetworkLost: when the network connection is lost
+ OnCapabilitiesChanged: when network capabilities are updated
+ OnConnectedToInternet: when the device has an actual internet connection
- Retrieve information about the active network
- Remove the listener once you are done to prevent leaks





