blob: 87b4cacb99e03b509bdf748ae9975f99e747d9bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// The default base URL for Mapbox APIs other than the telemetry API.
extern NSString * const MGLDefaultMapboxAPIBaseURL;
/// The PRC base URL for Mapbox APIs other than the telemetry API.
extern NSString * const MGLChinaMapboxAPIBaseURL;
/**
The MGLNetworkConfiguration object provides a global way to set a base API URL for
retrieval of map data, styles, and other resources.
Currently, MGLNetworkConfiguration is private API in code but is able to be used
by any applications via the `MGLMapboxAPIBaseURL` dictionary key in the
application's `Info.plist`.
*/
@interface MGLNetworkConfiguration : NSObject
/// Returns the shared instance of the `MGLNetworkConfiguration` class.
@property (class, nonatomic, readonly) MGLNetworkConfiguration *sharedManager;
/// The current API base URL. If `nil`, the Mapbox default base API URL is in use.
@property (atomic, nullable) NSURL *apiBaseURL;
@end
NS_ASSUME_NONNULL_END
|