Home
last modified time | relevance | path

Searched refs:motionManager (Results 1 – 7 of 7) sorted by relevance

/expo/packages/expo-sensors/ios/
H A DGyroscopeModule.swift9 private lazy var motionManager = CMMotionManager() variable
18 return motionManager.isGyroAvailable in definition()
22 motionManager.gyroUpdateInterval = intervalMs / 1000.0 in definition()
26 if motionManager.isGyroActive { in definition()
29 motionManager.startGyroUpdates(to: operationQueue) { [weak self] data, _ in in definition()
42 motionManager.stopGyroUpdates() in definition()
46 motionManager.stopGyroUpdates() in definition()
H A DMagnetometerUncalibratedModule.swift9 private lazy var motionManager = CMMotionManager() variable
18 return motionManager.isMagnetometerAvailable in definition()
22 motionManager.magnetometerUpdateInterval = intervalMs in definition()
26 if motionManager.isMagnetometerActive { in definition()
29 motionManager.startMagnetometerUpdates(to: operationQueue) { [weak self] data, _ in in definition()
42 motionManager.stopMagnetometerUpdates() in definition()
46 motionManager.stopMagnetometerUpdates() in definition()
H A DAccelerometerModule.swift9 private lazy var motionManager = CMMotionManager() variable
18 return motionManager.isAccelerometerAvailable in definition()
22 motionManager.accelerometerUpdateInterval = intervalMs / 1000.0 in definition()
26 if motionManager.isAccelerometerActive { in definition()
29 motionManager.startAccelerometerUpdates(to: operationQueue) { [weak self] data, _ in in definition()
42 motionManager.stopAccelerometerUpdates() in definition()
46 motionManager.stopAccelerometerUpdates() in definition()
H A DMagnetometerModule.swift9 private lazy var motionManager = CMMotionManager() variable
18 return motionManager.isDeviceMotionAvailable in definition()
22 motionManager.deviceMotionUpdateInterval = intervalMs / 1000.0 in definition()
26 if motionManager.isDeviceMotionActive { in definition()
31 …motionManager.startDeviceMotionUpdates(using: referenceFrame, to: operationQueue) { [weak self] da… in definition()
44 motionManager.stopDeviceMotionUpdates() in definition()
48 motionManager.stopDeviceMotionUpdates() in definition()
H A DDeviceMotionModule.swift12 private lazy var motionManager = CMMotionManager() variable
27 return motionManager.isDeviceMotionAvailable in definition()
31 motionManager.deviceMotionUpdateInterval = intervalMs / 1000.0 in definition()
39 motionManager.stopDeviceMotionUpdates() in definition()
43 motionManager.stopDeviceMotionUpdates() in definition()
48 if motionManager.isDeviceMotionActive { in startDeviceMotionUpdates()
53 …motionManager.startDeviceMotionUpdates(using: referenceFrame, to: operationQueue) { [weak self] da… in startDeviceMotionUpdates()
83 "interval": Double(self.motionManager.deviceMotionUpdateInterval) in startDeviceMotionUpdates()
/expo/ios/versioned/sdk49/EXCamera/EXCamera/
H A DABI49_0_0EXCamera.m23 @property (nonatomic, strong) CMMotionManager * motionManager; property
331 [self.motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue new]
334 … = [ABI49_0_0EXCameraUtils deviceOrientationForAccelerometerData:self.motionManager.accelerometerD…
342 [self.motionManager stopAccelerometerUpdates];
778 [self.motionManager stopAccelerometerUpdates];
/expo/packages/expo-camera/ios/EXCamera/
H A DEXCamera.m23 @property (nonatomic, strong) CMMotionManager * motionManager; property
336 [self.motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue new]
339 …ientation = [EXCameraUtils deviceOrientationForAccelerometerData:self.motionManager.accelerometerD…
347 [self.motionManager stopAccelerometerUpdates];
786 [self.motionManager stopAccelerometerUpdates];