Share via


IUIAccelerometerDelegate Interface

Definition

A class used to receive notifications from the UIAccelerometer.

[Foundation.Protocol(Name="UIAccelerometerDelegate", WrapperType=typeof(UIKit.UIAccelerometerDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidAccelerate", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAccelerometer), typeof(UIKit.UIAcceleration) }, Selector="accelerometer:didAccelerate:")]
public interface IUIAccelerometerDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIAccelerometerDelegate", WrapperType=typeof(UIKit.UIAccelerometerDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidAccelerate", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAccelerometer), typeof(UIKit.UIAcceleration) }, Selector="accelerometer:didAccelerate:")>]
type IUIAccelerometerDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

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 Acceleration.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DidAccelerate(UIAccelerometer, UIAcceleration)

Indicates that an acceleration measurement has occurred.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
DidAccelerate(IUIAccelerometerDelegate, UIAccelerometer, UIAcceleration)

Indicates that an acceleration measurement has occurred.

Applies to

See also