2016-03-24 07:31:12 +00:00
|
|
|
//
|
|
|
|
// 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);
|
|
|
|
|
2016-03-24 07:31:12 +00:00
|
|
|
@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;
|
2016-03-24 07:31:12 +00:00
|
|
|
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
|
|
|
|
|
|
|
|
@end
|