InternetObservingStrategy class abstract

The base for all Observing strategies. If you'd like to create a new Strategy, extend from this class. check SocketObservingStrategy for strategy that opens a socket to a list of specified addresses

Implementers

Constructors

InternetObservingStrategy()

Properties

disposeOnFirstConnected bool
If true, the strategy will stop observing for internet changes as soon as the device is online
no setter
disposeOnFirstDisconnected bool
If true, the strategy will stop observing for internet changes as soon as the device is offline
no setter
duration Duration?
The duration to listen for connection event
no setter
hashCode int
The hash code for this object.
no setterinherited
hasInternetConnection Future<bool>
The strategy to use to determine is there is internet access or not check SocketObservingStrategy for a sample
no setter
initialDuration Duration?
The initial duration to wait before observing internet access
no setter
interval Duration
The interval between periodic observing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited