UIAcceleration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class that stores the data from an acceleration event.
[Foundation.Register("UIAcceleration", true)]
public class UIAcceleration : Foundation.NSObject
[<Foundation.Register("UIAcceleration", true)>]
type UIAcceleration = class
inherit NSObject
- Inheritance
- Attributes
Remarks
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.
The MotionShake event subtype can be used to detect a shake gesture. (See UIEvent.)
Constructors
| Name | Description |
|---|---|
| UIAcceleration() |
Creates a new UIAcceleration with default values. |
| UIAcceleration(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UIAcceleration(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Time | |
| X | |
| Y | |
| Z | |
| Zone | (Inherited from NSObject) |