Usage
Last updated
Was this helpful?
Last updated
Was this helpful?
Once you set up the details in , you need to import the namespace for starting the network status detection.
For detecting the network status you need to start the notifier. Once there is a change in network status, events are fired to capture the status. You need to register for the events first to get the network status.
Start the network notifier to enable detection of network connectivity and receive the events.
Once you are done with your requirement on detecting network connectivity, you can stop the notifier by calling StopNotifier.
Once after you called StartNotifier, there are options to check the status of the network by some utility methods.
It's always good to stop the network notifier if you aren't using the status. This helps to save some network data and device battery for users as the plugin don't need to pool the servers.
As you can see, you can either listen to general internet connectivity or to a specific host. You need to set the host in the Host address section of .