MGLAccountManager
@interface MGLAccountManager : NSObject
The MGLAccountManager object provides a global way to set a Mapbox API access token, as well as other settings used framework-wide.
-
Set the Mapbox API access token for the framework.
You can set an access token on MGLAccountManager or on an individual map view. The same token is used throughout the framework. - parameter: accessToken The Mapbox API access token.
Declaration
Objective-C
+ (void)setAccessToken:(nullable NSString *)accessToken;
Parameters
accessToken
The Mapbox API access token.
-
Retreive the Mapbox API access token for the framework.
You can set an access token on MGLAccountManager or on an individual map view. The same token is used throughout the framework.
Declaration
Objective-C
+ (nullable NSString *)accessToken;
Return Value
accessToken The Mapbox API access token.