diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-17 00:10:14 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-05-18 11:55:54 -0700 |
commit | 2c7d0567fa7a2b342b16a5ecea5290aee32aaa77 (patch) | |
tree | a23f39a5212bfe4dc04a01a13d840c25294ac09b /ios | |
parent | b3546ccc48081bd2215288d14741c9ef794a8654 (diff) | |
download | qtlocation-mapboxgl-2c7d0567fa7a2b342b16a5ecea5290aee32aaa77.tar.gz |
Privatized MGLMapboxEvents
`-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
Diffstat (limited to 'ios')
-rw-r--r-- | ios/app/MBXAppDelegate.m | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ios/app/MBXAppDelegate.m b/ios/app/MBXAppDelegate.m index ce699ce694..dc04105083 100644 --- a/ios/app/MBXAppDelegate.m +++ b/ios/app/MBXAppDelegate.m @@ -1,8 +1,6 @@ #import "MBXAppDelegate.h" #import "MBXViewController.h" #import <mbgl/ios/MapboxGL.h> -#import <mbgl/ios/MGLAccountManager.h> -#import <mbgl/ios/MGLMapboxEvents.h> @implementation MBXAppDelegate @@ -34,26 +32,4 @@ return YES; } -/** -- (void)applicationWillEnterForeground:(UIApplication *)application -{ - // Example of how to resume Metrics Collection - - // Reasons for needing to resume: - // 1. In UIBackground and app starts listening for Location Updates where it previously had not been listening. - // 2. App is entering foreground where it had called pauseMetricsCollection. - [MGLMapboxEvents resumeMetricsCollection]; -} - -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - // Example of how to pause Metrics Collection - - // Reason for needing to pause: - // 1. Either entering or already in UIBackground and app stops listening for Location Updates - // via any CLLocationManager instance it may have. - [MGLMapboxEvents pauseMetricsCollection]; -} -*/ - @end |