react-native-camera/ios/RCTSensorOrientationChecker.h

20 lines
464 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:12:57 +00:00
- (void)getDeviceOrientationWithBlock:(RCTSensorCallback)callback;
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
@end