2020-02-22 15:38:54 +04:00

16 lines
439 B
Objective-C

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PGCameraDeviceAngleSampler : NSObject
@property (nonatomic, copy) void(^deviceOrientationChanged)(UIDeviceOrientation orientation);
@property (nonatomic, readonly) UIDeviceOrientation deviceOrientation;
@property (nonatomic, readonly) bool isMeasuring;
@property (nonatomic, readonly) CGFloat currentDeviceAngle;
- (void)startMeasuring;
- (void)stopMeasuring;
@end