Merge pull request #1528 from mapbox/1516-getter

Adding Getter Method
This commit is contained in:
Minh Nguyễn
2015-05-12 10:16:46 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
@interface MGLAccountManager : NSObject
+ (void) setMapboxMetricsEnabledSettingShownInApp:(BOOL)showsOptOut;
+ (BOOL) mapboxMetricsEnabledSettingShownInApp;
+ (void) setAccessToken:(NSString *) accessToken;
+ (NSString *) accessToken;

View File

@@ -22,7 +22,7 @@
if ( ! accessToken) NSLog(@"No access token set. Mapbox vector tiles won't work.");
// Signal To SDK That Opt Out Is In App UI
// [MGLAccountManager setShowsOptOutInApp:YES];
// [MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:YES];
// Start Mapbox GL SDK
[MGLAccountManager setAccessToken:accessToken];