See Also: UIAcceleration
[MonoTouch.ObjCRuntime.Deprecated(MonoTouch.ObjCRuntime.PlatformName.iOS, 5, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, "Deprecated in iOS 5, use the CoreMotion instead")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 2, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, "Deprecated in iOS 5, use the CoreMotion instead")]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIAcceleration : NSObject
The iOS accelerometer (see UIAccelerometer) reports acceleration events as a triplet of vectors. Looking at the face of an iOS device, positive X is to the right, positive Y is to the top, and positive Z is towards the viewer. The value of each vector is a double whose units are g-force.
Application developers should not rely on the accuracy of a single acceleration event but rather should rather average or otherwise interpolate from a series of readings.
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0
The members of MonoTouch.UIKit.UIAcceleration are listed below.
See Also: NSObject
|Default constructor that initializes a new instance of this class with no parameters.|
|A constructor that initializes the object from the data stored in the unarchiver object.|
|Constructor to call on derived classes to skip initialization and merely allocate the object.|
|A constructor used when creating managed representations of unmanaged objects; Called by the runtime.|
|ClassHandle||IntPtr. The handle for this class.|
|[read-only]||Time||Double. The relative time at which the acceleration event occurred. Read-only.|
|[read-only]||X||Double. The acceleration value along the X axis of the device. Read-only.|
|[read-only]||Y||Double. The acceleration value along the Y axis of the device. Read-only.|
|[read-only]||Z||Double. The acceleration value along the Z axis of the device. Read-only.|