Mono Class Library: Namespaces

MonoTouch.CoreMotion Namespace

Receive hardware motions events.

Remarks

The CoreMotion API allows developers to get hardware events from the built-in accelerometer and gyroscopes.

Classes

TypeReason
CMAccelerometerDataAn accelerometer event, encapsulates an instance of MonoTouch.CoreMotion.CMAcceleration
CMAttitudeUsed to pull spacial information from the device in either quaternion, rotation matrix or with 3D angles (roll, pitch and yaw).
CMDeviceMotionEncapsulates Attitude, Rotation Rate and Acceleration of the device.
CMGyroDataA single measurement of the device rotation rate.
CMLogItemBase class for CMAccelerometerData, CMDeviceMotion and CMGyroData, it is used to attach a timestamp to these events.
CMMotionManagerCore class that provides access to the motion services in iOS.

Structs

TypeReason
CMAccelerationA 3D vector containing acceleration values.
CMQuaternionRepresents a Quaternion, used as one of the possible CMAttitude representations.
CMRotationMatrixRepresents a 3x3 rotation matrix.
CMRotationRate3D rotation rate.

Delegates

TypeReason
CMAccelerometerHandlerA delegate signature used to receive events from MonoTouch.CoreMotion.CMMotionManager
CMDeviceMotionHandlerA delegate signature used to receive events from MonoTouch.CoreMotion.CMMotionManager
CMGyroHandlerA delegate signature used to receive events from MonoTouch.CoreMotion.CMMotionManager

Enumerations

TypeReason
CMErrorType for CoreMotion errors.