make orientation public
This commit is contained in:
parent
379f75d7a6
commit
5d98407e67
|
@ -13,6 +13,8 @@ typedef void (^RCTSensorCallback) (UIInterfaceOrientation orientation);
|
||||||
|
|
||||||
@interface RCTSensorOrientationChecker : NSObject
|
@interface RCTSensorOrientationChecker : NSObject
|
||||||
|
|
||||||
|
@property (assign, nonatomic) UIInterfaceOrientation orientation;
|
||||||
|
|
||||||
- (void)getDeviceOrientationWithBlock:(RCTSensorCallback)callback;
|
- (void)getDeviceOrientationWithBlock:(RCTSensorCallback)callback;
|
||||||
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
|
- (AVCaptureVideoOrientation)convertToAVCaptureVideoOrientation:(UIInterfaceOrientation)orientation;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
@interface RCTSensorOrientationChecker ()
|
@interface RCTSensorOrientationChecker ()
|
||||||
|
|
||||||
@property (strong, nonatomic) CMMotionManager * motionManager;
|
@property (strong, nonatomic) CMMotionManager * motionManager;
|
||||||
@property (assign, nonatomic) UIInterfaceOrientation orientation;
|
|
||||||
@property (strong, nonatomic) RCTSensorCallback orientationCallback;
|
@property (strong, nonatomic) RCTSensorCallback orientationCallback;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -33,6 +32,11 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)dealloc
|
||||||
|
{
|
||||||
|
[self pause];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)resume
|
- (void)resume
|
||||||
{
|
{
|
||||||
__weak __typeof(self) weakSelf = self;
|
__weak __typeof(self) weakSelf = self;
|
||||||
|
|
Loading…
Reference in New Issue