data_connection_checker 0.3.4
data_connection_checker: ^0.3.4 copied to clipboard
A pure Dart library that checks for internet by opening a socket to a list of specified addresses, each with individual port and timeout. Defaults are provided for convenience.
0.3.3 (and 0.3.4) #
- Bumping version number, so pub.dev can accept the package
- Add more docs for
onStatusChange
0.3.2 #
- Fix status not updated bug (
_lastStatusbeing set incorrectly)
0.3.1 #
- Fix annoying
dartfmtwarning (perfectionism intensifies)
0.3.0 #
- Added
onStatusChangestream, which users of this lib can subscribe to and listen for status changes. Emit values ofDataConnectionStatus - Added
checkIntervalwhich controls how often a check is made when someone is listening toonStatusChange. Defaults toDEFAULT_INTERVAL(10 seconds)
0.2.1 #
Breaking change
hasDataConnectionis now calledhasConnection
Non breaking
isHostReachable()is now public. It allows for individual checks.- Fix
DEFAULT_ADDRESSESto be unmodifiable - removed getter
lastTryLog - added getter
connectionStatus - added getter
lastTryResults - updated example and readme
0.2.0 #
- Breaking changes
- This utility is now a Singleton (DataConnectionChecker() always returns the same instance) as it doesn't make sense to have more than one instance of this class
addressesis aList<InternetAddressCheckOptions>now. See the docs for more info- Each address can now have its own port and timeout assigned.
0.1.3 #
- Add more info in the README
0.1.2 #
- Minor refactoring
- Update README with more info
0.1.1 #
- Remove pedantic as a dependency
0.1.0 #
- Initial version