ConnectivityChangeEvent¶
Network connectivity change delivered to BGGeo.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.
val bgGeo = BGGeo.instance
bgGeo.onConnectivityChange { event ->
Log.d(TAG, "[onConnectivityChange] connected: ${event.isConnected}")
}
Members¶
isConnected¶
true when the device has network connectivity; false when it is offline.