OfflineSwitch

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

  • Returns the OfflineSwitch shared instance.

  • Connects or disconnects the Mapbox stack. If set to false, current and new HTTP requests will fail with HttpRequestError with type .connectionError.