react-native-camera/ios/RCTSensorOrientationChecker.h

22 lines
531 B
C
Raw Normal View History

//
// RCTSensorOrientationChecker.h
// RCTCamera
//
// Created by Radu Popovici on 24/03/16.
//
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
2016-03-24 08:12:57 +00:00
typedef void (^RCTSensorCallback) (UIInterfaceOrientation orientation);
@interface RCTSensorOrientationChecker : NSObject
2016-03-24 08:25:45 +00:00
@property (assign, nonatomic) UIInterfaceOrientation orientation;
2016-03-24 08:12:57 +00:00
- (void)getDeviceOrientationWithBlock:(RCTSensorCallback)callback;
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
@end