// Copyright 2015-present 650 Industries. All rights reserved. #import #import #import #import NS_ASSUME_NONNULL_BEGIN @interface EXLocationDelegate : NSObject @property (nonatomic, strong) NSNumber *watchId; @property (nonatomic, strong) CLLocationManager *locMgr; @property (nonatomic, strong) void (^onUpdateLocations)(NSArray *locations); @property (nonatomic, strong) void (^onUpdateHeadings)(CLHeading *newHeading); @property (nonatomic, strong) void (^onError)(NSError *error); - (instancetype)initWithId:(nullable NSNumber *)watchId withLocMgr:(CLLocationManager *)locMgr onUpdateLocations:(nullable void (^)(NSArray *locations))onUpdateLocations onUpdateHeadings:(nullable void (^)(CLHeading *newHeading))onUpdateHeadings onError:(nullable void (^)(NSError *error))onError; - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations; - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading; - (void)locationManager:(CLLocationManager *)manager didFailWithError:(nonnull NSError *)error; @end NS_ASSUME_NONNULL_END