diff options
Diffstat (limited to 'include/mbgl/osx/MGLAccountManager.h')
-rw-r--r-- | include/mbgl/osx/MGLAccountManager.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/mbgl/osx/MGLAccountManager.h b/include/mbgl/osx/MGLAccountManager.h new file mode 100644 index 0000000000..c185f29b2e --- /dev/null +++ b/include/mbgl/osx/MGLAccountManager.h @@ -0,0 +1,26 @@ +#import <Foundation/Foundation.h> + +#import "MGLTypes.h" + +NS_ASSUME_NONNULL_BEGIN + +/** The MGLAccountManager object provides a global way to set a Mapbox API access token, as well as other settings used framework-wide. */ +@interface MGLAccountManager : NSObject + +/** @name Authorizing Access */ + +/** 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. +* @param accessToken The Mapbox API access token. */ ++ (void)setAccessToken:(nullable NSString *)accessToken; + +/** 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. +* @return accessToken The Mapbox API access token. */ ++ (nullable NSString *)accessToken; + +@end + +NS_ASSUME_NONNULL_END |