OfflineSwitch
public class OfflineSwitch
Instance that allows connecting or disconnecting the Mapbox stack to the network.
-
Returns the
OfflineSwitchshared instance.Declaration
Swift
public static var shared: OfflineSwitch -
Connects or disconnects the Mapbox stack. If set to
false, current and new HTTP requests will fail withHttpRequestErrorwith type.connectionError.Declaration
Swift
public var isMapboxStackConnected: Bool { get set }
OfflineSwitch Class Reference