react-native-camera_edit/ios/RN/RNSensorOrientationChecker.h
2025-07-09 11:33:00 +09:00

22 lines
526 B
Objective-C

//
// RNSensorOrientationChecker.h
// RNCamera
//
// Created by Radu Popovici on 24/03/16.
//
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
typedef void (^RNSensorCallback) (UIInterfaceOrientation orientation);
@interface RNSensorOrientationChecker : NSObject
@property (assign, nonatomic) UIInterfaceOrientation orientation;
- (void)getDeviceOrientationWithBlock:(RNSensorCallback)callback;
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
@end