internet_connection_checker library
Classes
- AddressCheckOptions
- This class should be pretty self-explanatory. If AddressCheckOptions.port or AddressCheckOptions.timeout are not specified, they both default to InternetConnectionChecker.DEFAULT_PORT and InternetConnectionChecker.DEFAULT_TIMEOUT Also... yeah, I'm not great at naming things.
- AddressCheckResult
- Helper class that contains the address options and indicates whether opening a socket to it succeeded.
- InternetConnectionChecker
- This is a singleton that can be accessed like a regular constructor i.e. InternetConnectionChecker() always returns the same instance.
Enums
- InternetConnectionStatus
- Represents the status of the data connection. Returned by InternetConnectionChecker.connectionStatus