diff options
Diffstat (limited to 'platform/darwin/src/MGLAccountManager.h')
-rw-r--r-- | platform/darwin/src/MGLAccountManager.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/platform/darwin/src/MGLAccountManager.h b/platform/darwin/src/MGLAccountManager.h deleted file mode 100644 index d1983a4ddc..0000000000 --- a/platform/darwin/src/MGLAccountManager.h +++ /dev/null @@ -1,41 +0,0 @@ -#import <Foundation/Foundation.h> - -#import "MGLFoundation.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - The `MGLAccountManager` object provides a global way to set a Mapbox API access - token. - */ -MGL_EXPORT -@interface MGLAccountManager : NSObject - -#pragma mark Authorizing Access - -/** - The - <a href="https://docs.mapbox.com/help/glossary/access-token/">Mapbox access token</a> - used by all instances of `MGLMapView` in the current application. - - Mapbox-hosted vector tiles and styles require an API access token, which you - can obtain from the - <a href="https://www.mapbox.com/studio/account/tokens/">Mapbox account page</a>. - Access tokens associate requests to Mapbox’s vector tile and style APIs with - your Mapbox account. They also deter other developers from using your styles - without your permission. - - Setting this property to a value of `nil` has no effect. - - @note You must set the access token before attempting to load any Mapbox-hosted - style. Therefore, you should generally set it before creating an instance of - `MGLMapView`. The recommended way to set an access token is to add an entry - to your application’s Info.plist file with the key `MGLMapboxAccessToken` - and the type `String`. Alternatively, you may call this method from your - application delegate’s `-applicationDidFinishLaunching:` method. - */ -@property (class, assign, nullable) NSString *accessToken; - -@end - -NS_ASSUME_NONNULL_END |