Edit

Share via


CMGyroHandler Delegate

Definition

A delegate signature used to receive events from CMMotionManager

public delegate void CMGyroHandler(CMGyroData gyroData, NSError error);
type CMGyroHandler = delegate of CMGyroData * NSError -> unit

Parameters

gyroData
CMGyroData

The gyroscope data for this event.

error
NSError

Error or null if there are no errors.

Remarks

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

For example:

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

Applies to