CMGyroHandler Delegate
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 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);
});