newsmemory-ios-sdk/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensor.h

26 lines
653 B
C
Raw Permalink Normal View History

2024-10-29 07:36:43 +00:00
#if __has_include(<CoreMotion/CoreMotion.h>)
#import <CoreMotion/CoreMotion.h>
#endif
#import <RNReanimated/ReanimatedSensorType.h>
@interface ReanimatedSensor : NSObject {
ReanimatedSensorType _sensorType;
double _interval;
double _lastTimestamp;
#if !TARGET_OS_TV
CMMotionManager *_motionManager;
#endif
void (^_setter)(double[]);
}
- (instancetype)init:(ReanimatedSensorType)sensorType interval:(int)interval setter:(void (^)(double[]))setter;
- (bool)initialize;
- (bool)initializeGyroscope;
- (bool)initializeAccelerometer;
- (bool)initializeGravity;
- (bool)initializeMagnetometer;
- (bool)initializeOrientation;
- (void)cancel;
@end