Cargo Features

[dependencies]
objc2-core-motion = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "bitflags", "block2", "objc2-core-location", "CMAbsoluteAltitude", "CMAccelerometer", "CMAltimeter", "CMAltitude", "CMAmbientPressure", "CMAttitude", "CMAvailability", "CMBatchedSensorManager", "CMDeviceMotion", "CMError", "CMErrorDomain", "CMFallDetectionEvent", "CMFallDetectionManager", "CMGyro", "CMHeadphoneMotionManager", "CMHeadphoneMotionManagerDelegate", "CMHighFrequencyHeartRateData", "CMLogItem", "CMMagnetometer", "CMMotionActivity", "CMMotionActivityManager", "CMMotionManager", "CMMovementDisorderManager", "CMOdometer", "CMPedometer", "CMRotationRateData", "CMSensorRecorder", "CMStepCounter", "CMWaterSubmersionData", "CMWaterSubmersionManager"] }
default = std

The std feature is set by default whenever objc2-core-motion is added without default-features = false somewhere in the dependency tree.

std default = alloc

Currently not possible to turn off, put here for forwards compatibility.

Enables std of optional bitflags, optional block2, objc2, optional objc2-core-location, and objc2-foundation

alloc std

Enables alloc of optional block2, objc2, optional objc2-core-location, and objc2-foundation

all = CMAbsoluteAltitude, CMAccelerometer, CMAltimeter, CMAltitude, CMAmbientPressure, CMAttitude, CMAuthorization, CMAvailability, CMBatchedSensorManager, CMDeviceMotion, CMError, CMErrorDomain, CMFallDetectionEvent, CMFallDetectionManager, CMGyro, CMHeadphoneMotionManager, CMHeadphoneMotionManagerDelegate, CMHighFrequencyHeartRateData, CMLogItem, CMMagnetometer, CMMotionActivity, CMMotionActivityManager, CMMotionManager, CMMovementDisorderManager, CMOdometer, CMPedometer, CMRecordedAccelerometerData, CMRecordedPressureData, CMRotationRateData, CMSensorRecorder, CMStepCounter, CMWaterSubmersionData, CMWaterSubmersionManager, bitflags, block2, objc2-core-location
bitflags CMAttitude? all?

Enables bitflags, bitflags of objc2-foundation

block2 all?

Enables block2, block2 of objc2-foundation and optional objc2-core-location

Affects CMMovementDisorderManager::CMDyskineticSymptomResultHandler, CMMovementDisorderManager::CMTremorResultHandler, CMPedometer::CMPedometerHandler, CMPedometer::CMPedometerEventHandler, CMStepCounter::CMStepQueryHandler, CMStepCounter::CMStepUpdateHandler, CMAltimeter::CMAltitudeHandler, CMAltimeter::CMAbsoluteAltitudeHandler, CMHeadphoneMotionManager::CMHeadphoneDeviceMotionHandler, CMMotionActivityManager::CMMotionActivityHandler, CMMotionActivityManager::CMMotionActivityQueryHandler, CMMotionManager::CMAccelerometerHandler, CMMotionManager::CMGyroHandler, CMMotionManager::CMDeviceMotionHandler, CMMotionManager::CMMagnetometerHandler

objc2-core-location all?

Enables objc2-core-location

CMAbsoluteAltitude all?

Enables NSObject of objc2-foundation

Affects CMAltimeter::CMAbsoluteAltitudeHandler

CMAccelerometer all?

Enables NSObject of objc2-foundation

Affects CMMotionManager::CMAccelerometerHandler

CMAltimeter all?

Enables NSError and NSOperation of objc2-foundation

CMAltitude all?

Enables NSObject and NSValue of objc2-foundation

Affects CMAltimeter::CMAltitudeHandler

CMAmbientPressure all?

Enables NSMeasurement, NSObject and NSUnit of objc2-foundation

CMAttitude all? = bitflags

Enables NSObject of objc2-foundation

CMAuthorization CMAvailability all?
CMBatchedSensorManager all?

Enables NSArray and NSError of objc2-foundation

CMDeviceMotion all?

Enables NSObject of objc2-foundation

Affects CMHeadphoneMotionManager::CMHeadphoneDeviceMotionHandler, CMMotionManager::CMDeviceMotionHandler

CMError all?
CMErrorDomain all?

Enables NSString of objc2-foundation

CMFallDetectionEvent all?

Enables NSDate of objc2-foundation

CMFallDetectionManager all?
CMGyro all?

Enables NSObject of objc2-foundation

Affects CMMotionManager::CMGyroHandler

CMHeadphoneMotionManager all?

Enables NSError and NSOperation of objc2-foundation

CMHeadphoneMotionManagerDelegate all?
CMHighFrequencyHeartRateData all?

Enables NSDate and NSObject of objc2-foundation

CMLogItem all?

Enables NSDate and NSObject of objc2-foundation

Affects CMAltimeter::CMAltitudeHandler, CMAltimeter::CMAbsoluteAltitudeHandler, CMHeadphoneMotionManager::CMHeadphoneDeviceMotionHandler, CMMotionActivityManager::CMMotionActivityHandler, CMMotionActivityManager::CMMotionActivityQueryHandler, CMMotionManager::CMAccelerometerHandler, CMMotionManager::CMGyroHandler, CMMotionManager::CMDeviceMotionHandler, CMMotionManager::CMMagnetometerHandler

CMMagnetometer all?

Enables NSObject of objc2-foundation

Affects CMDeviceMotion::CMCalibratedMagneticField, CMMotionManager::CMMagnetometerHandler

CMMotionActivity all?

Enables NSDate and NSObject of objc2-foundation

Affects CMMotionActivityManager::CMMotionActivityHandler, CMMotionActivityManager::CMMotionActivityQueryHandler

CMMotionActivityManager all?

Enables NSArray, NSDate, NSError and NSOperation of objc2-foundation

CMMotionManager all?

Enables NSDate, NSError and NSOperation of objc2-foundation

CMMovementDisorderManager all?

Enables NSArray, NSDate, NSError, NSObject and NSString of objc2-foundation

CMOdometer all?

Enables NSDate, NSObject and NSValue of objc2-foundation, CLLocation of optional objc2-core-location

CMPedometer all?

Enables NSDate, NSError, NSObject and NSValue of objc2-foundation

CMRecordedAccelerometerData CMRecordedPressureData CMRotationRateData all?

Enables NSDate and NSObject of objc2-foundation

CMSensorRecorder all?

Enables NSDate and NSEnumerator of objc2-foundation

CMStepCounter all?

Enables NSDate, NSError and NSOperation of objc2-foundation

CMWaterSubmersionData all?

Enables NSDate, NSMeasurement, NSObject and NSUnit of objc2-foundation

CMWaterSubmersionManager all?

Enables NSError, NSMeasurement and NSUnit of objc2-foundation