OfflineSwitch

open class OfflineSwitch

Instance that allows connecting or disconnecting the Mapbox stack to the network.

Functions

Link copied to clipboard
Returns the OfflineSwitch singleton instance.
Link copied to clipboard
Provides information if the Mapbox stack is connected or disconnected via OfflineSwitch.
Link copied to clipboard
open fun registerObserver(@NonNull observer: OfflineSwitchObserver)
Link copied to clipboard
open fun reset()
Releases the OfflineSwitch singleton instance.
Link copied to clipboard
Connects or disconnects the Mapbox stack.
Link copied to clipboard
open fun unregisterObserver(@NonNull observer: OfflineSwitchObserver)