Replaced appledoc usage with jazzy, which understands modern Objective-C syntax by virtue of using Clang ASTs. Nevertheless, we have to make lots of changes to our documentation syntax, which was tailored to appledocs quirks. The new syntax jives much better with what Xcode expects in terms of auto-indentation and Quick Help. Fixes #1420.
39 lines
1.2 KiB
Objective-C
39 lines
1.2 KiB
Objective-C
#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
|
|
|
|
#pragma mark 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;
|
|
|
|
#pragma mark Providing User Metrics Opt-Out
|
|
|
|
/**
|
|
Whether in-app user metrics opt-out is configured. If set to the default value of `NO`, a user opt-out preference is expected in a `Settings.bundle` that shows in the application's section within the system Settings app.
|
|
*/
|
|
+ (BOOL)mapboxMetricsEnabledSettingShownInApp;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|