UIKit.UIAcceleration Class
A class that stores the data from an acceleration event.

See Also: UIAcceleration Members


[Foundation.Register("UIAcceleration", true)]
[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_5_0, Introduced=ObjCRuntime.Platform.iOS_2_0, Message="Deprecated in iOS 5, use the CoreMotion instead")]
public class UIAcceleration : Foundation.NSObject


The iOS accelerometer (see UIKit.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.

The UIEventSubtype.MotionShake event subtype can be used to detect a shake gesture. (See UIKit.UIEvent.)

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: