ConnectivityChangeEvent¶
Network connectivity change delivered to BackgroundGeolocation.onConnectivityChange.
The SDK fires this event whenever the device transitions between an online and offline state. When connectivity is restored, the SDK automatically resumes uploading any locations queued in the SQLite database.
BackgroundGeolocation.onConnectivityChange((ConnectivityChangeEvent event) {
print('[onConnectivityChange] connected: ${event.connected}');
});
Members¶
connected¶
true when the device has network connectivity; false when it is offline.