mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-30 21:21:06 +00:00
make orientation public
This commit is contained in:
@@ -13,6 +13,8 @@ typedef void (^RCTSensorCallback) (UIInterfaceOrientation orientation);
|
||||
|
||||
@interface RCTSensorOrientationChecker : NSObject
|
||||
|
||||
@property (assign, nonatomic) UIInterfaceOrientation orientation;
|
||||
|
||||
- (void)getDeviceOrientationWithBlock:(RCTSensorCallback)callback;
|
||||
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
@interface RCTSensorOrientationChecker ()
|
||||
|
||||
@property (strong, nonatomic) CMMotionManager * motionManager;
|
||||
@property (assign, nonatomic) UIInterfaceOrientation orientation;
|
||||
@property (strong, nonatomic) RCTSensorCallback orientationCallback;
|
||||
|
||||
@end
|
||||
@@ -33,6 +32,11 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[self pause];
|
||||
}
|
||||
|
||||
- (void)resume
|
||||
{
|
||||
__weak __typeof(self) weakSelf = self;
|
||||
|
||||
Reference in New Issue
Block a user