#import #import @protocol MGLLocationManagerDelegate; @interface MGLLocationManager : NSObject @property (nonatomic, weak) id delegate; - (void)startUpdatingLocation; - (void)stopUpdatingLocation; @end @protocol MGLLocationManagerDelegate @optional - (void)locationManager:(MGLLocationManager *)locationManager didUpdateLocations:(NSArray *)locations; - (void)locationManagerDidStartLocationUpdates:(MGLLocationManager *)locationManager; - (void)locationManagerBackgroundLocationUpdatesDidTimeout:(MGLLocationManager *)locationManager; - (void)locationManagerBackgroundLocationUpdatesDidAutomaticallyPause:(MGLLocationManager *)locationManager; - (void)locationManagerDidStopLocationUpdates:(MGLLocationManager *)locationManager; @end