MonoTouch.CoreMotion.CMGyroHandler Delegate
A delegate signature used to receive events from MonoTouch.CoreMotion.CMMotionManager

Syntax

public delegate void CMGyroHandler (CMGyroData gyroData, MonoTouch.Foundation.NSError error)

Parameters

gyroData
The gyroscope data for this event.
error
Error or null if there are no errors.

Remarks

This signature is used as an argument to the MonoTouch.CoreMotion.CMMotionManager's StartGyroUpdates.

For example:

C# Example

     var motionManager = new CMMotionManager ();
     motionManager.AccelerometerUpdateInterval = 0.01; // 100Hz
     motionManager.StartDeviceMotionUpdates (NSOperationQueue.CurrentQueue, (gyroData, error) => {
          Console.WriteLine ("RotationRate={0}", gyroData.RotationRate);
     });
  

Requirements

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