summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2015-05-12 11:37:40 -0500
committerBrad Leege <bleege@gmail.com>2015-05-12 11:37:40 -0500
commit8548ab0346289d00105ef9c51a2d1d10c383f1f0 (patch)
treee6dfd12c058088b325c3cf315e5e91ada665def2
parent3391d8f6d843ab57b8c1b1733530caf2a71f9066 (diff)
downloadqtlocation-mapboxgl-8548ab0346289d00105ef9c51a2d1d10c383f1f0.tar.gz
#1516 - Adding public setter method to MGLAccountManager.h. Fixing example signal opt out in MBXAppDelegate.
-rw-r--r--include/mbgl/ios/MGLAccountManager.h1
-rw-r--r--ios/app/MBXAppDelegate.m2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/ios/MGLAccountManager.h b/include/mbgl/ios/MGLAccountManager.h
index f856f16cc5..f8bb2bf9a6 100644
--- a/include/mbgl/ios/MGLAccountManager.h
+++ b/include/mbgl/ios/MGLAccountManager.h
@@ -1,6 +1,7 @@
@interface MGLAccountManager : NSObject
+ (void) setMapboxMetricsEnabledSettingShownInApp:(BOOL)showsOptOut;
++ (BOOL) mapboxMetricsEnabledSettingShownInApp;
+ (void) setAccessToken:(NSString *) accessToken;
+ (NSString *) accessToken;
diff --git a/ios/app/MBXAppDelegate.m b/ios/app/MBXAppDelegate.m
index d4af1f59df..ce699ce694 100644
--- a/ios/app/MBXAppDelegate.m
+++ b/ios/app/MBXAppDelegate.m
@@ -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];