diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-13 15:33:28 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-05-13 15:33:28 -0700 |
commit | 2529baa62b509f2c763d5b3f9f5e1e388a45917f (patch) | |
tree | 432738db3298518ee2c150fff53fe41efe68f20e /include | |
parent | 1d38b636402a6581c491185090f5c81495a07d13 (diff) | |
download | qtlocation-mapboxgl-2529baa62b509f2c763d5b3f9f5e1e388a45917f.tar.gz |
Grab access token and other app-wide data from Info.plist
That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place.
Fixes #1535.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLAccountManager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/ios/MGLAccountManager.h b/include/mbgl/ios/MGLAccountManager.h index 7ec4135f18..5c1b2e3579 100644 --- a/include/mbgl/ios/MGLAccountManager.h +++ b/include/mbgl/ios/MGLAccountManager.h @@ -21,7 +21,7 @@ /** Certain Mapbox plans require the collection of user metrics. If you aren't using a preference switch in an existing or new `Settings.bundle` in your application, set this value to `YES` to indicate that you are providing a metrics opt-out for users within your app's interface directly. * @param showsOptOut Whether your application's interface provides a user opt-out preference. The default value is `NO`, meaning a `Settings.bundle` is expected for providing a user opt-out preference. */ -+ (void)setMapboxMetricsEnabledSettingShownInApp:(BOOL)showsOptOut; ++ (void)setMapboxMetricsEnabledSettingShownInApp:(BOOL)showsOptOut DEPRECATED_MSG_ATTRIBUTE("Set MGLMapboxMetricsEnabledSettingShownInApp in Info.plist"); /** 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; |