iOS Guides | Samples

MonoTouch.UIKit.UIAccelerometerDelegate Class

A class used to receive notifications from the UIAccelerometer.

See Also: UIAccelerometerDelegate

Syntax

[MonoTouch.Foundation.Model]
[MonoTouch.Foundation.Protocol]
[MonoTouch.Foundation.Register("UIAccelerometerDelegate", false)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIAccelerometerDelegate : NSObject, IUIAccelerometerDelegate, IDisposable

Remarks

To use this class, you must derive from it and override its methods to respond to events.

Alternatively, you can just use C# events to subscribe to UIAccelerometer.Acceleration.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIAccelerometerDelegate are listed below.

See Also: NSObject

Public Constructors

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.

Public Methods

DidAccelerate(UIAccelerometer, UIAcceleration)
Indicates that an acceleration measurement has occurred.