summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLLocationManager.h
blob: ea2380181363117f85f233076fb9c28304bf9cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@protocol MGLLocationManagerDelegate;

@interface MGLLocationManager : NSObject <CLLocationManagerDelegate>

@property (nonatomic, weak) id<MGLLocationManagerDelegate> delegate;

- (void)startUpdatingLocation;
- (void)stopUpdatingLocation;

@end

@protocol MGLLocationManagerDelegate <NSObject>

@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