21 lines
702 B
Objective-C
21 lines
702 B
Objective-C
// Copyright 2016-present 650 Industries. All rights reserved.
|
|
|
|
#import <CoreLocation/CLLocationManager.h>
|
|
|
|
#import <ExpoModulesCore/EXPermissionsInterface.h>
|
|
#import <CoreLocation/CLLocationManagerDelegate.h>
|
|
|
|
@interface EXBaseLocationRequester : NSObject<EXPermissionsRequester, CLLocationManagerDelegate>
|
|
|
|
@property (nonatomic, strong) CLLocationManager *locationManager;
|
|
@property (nonatomic, strong) EXPromiseResolveBlock resolve;
|
|
@property (nonatomic, strong) EXPromiseRejectBlock reject;
|
|
|
|
+ (BOOL)isConfiguredForWhenInUseAuthorization;
|
|
+ (BOOL)isConfiguredForAlwaysAuthorization;
|
|
|
|
- (void)requestLocationPermissions;
|
|
- (NSDictionary *)parsePermissions:(CLAuthorizationStatus)systemStatus;
|
|
|
|
@end
|