addListener
Adds a listener to monitor changes in the network status.
When the network status changes, the provided listener will be notified.
Parameters
listener
The listener to be notified about network status changes.
Adds a listener to monitor changes in the network status.
When the network status changes, the provided listener will be notified.
The listener to be notified about network status changes.