Avoids unnecessary steps to access singletons. Now `MGLMapboxEvents` and `MGLMetricsLocationManager` instances can message themselves directly.
14 lines
298 B
Objective-C
14 lines
298 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface MGLMetricsLocationManager : NSObject
|
|
|
|
// These methods can be called from any thread.
|
|
//
|
|
+ (instancetype)sharedManager;
|
|
- (void) startUpdatingLocation;
|
|
- (void) stopUpdatingLocation;
|
|
- (void) startMonitoringVisits;
|
|
- (void) stopMonitoringVisits;
|
|
|
|
@end
|