a9f16bca4a
- Move to Models folder - Improve code and nullability notation - Rename class with typo in name
29 lines
741 B
Objective-C
29 lines
741 B
Objective-C
//
|
|
// EQNAccelerometroManager.h
|
|
// Earthquake Network
|
|
//
|
|
// Created by Luca Beretta on 19/09/18.
|
|
// Copyright © 2018 Luca Beretta. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <CoreLocation/CoreLocation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface EQNAccelerometroManager : NSObject
|
|
|
|
@property (strong, nonatomic) CLLocationManager *locationManager;
|
|
@property (strong, nonatomic, nullable) CLLocation *currentLocation;
|
|
|
|
+ (instancetype)sharedInstance NS_SWIFT_NAME(shared());
|
|
|
|
+ (void)avviaLetturaAccellerometroIsCalibrazione:(BOOL)isCalibrazione withCompletion:(void(^)(NSArray *dati))completion;
|
|
- (void)getPosition;
|
|
- (void)startUpdatingLocationBackground;
|
|
- (void)stopUpdatingLocation;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|