public protocol ConnectivityObserver : AnyObject
Observer protocol for receiving information about connectivity type changes.
Called when the connection type changes from offline/unknown to connected to any type of network.
Called when the device changes its network connection, e.g. from offline/unknown to connected to WiFi, or from WiFi to a mobile data connection etc. The previous ReachabilityType and the current ReachabilityType are passed. ReachabilityTypes are defined in
ReachabilityType, such as
Called when the device is disconnected from the network.