Compass.Start Method
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.
Overloads
Start(SensorSpeed) |
Start monitoring for changes to the compass. |
Start(SensorSpeed, Boolean) |
Start monitoring for changes to the compass. |
Start(SensorSpeed)
Start monitoring for changes to the compass.
public static void Start (Xamarin.Essentials.SensorSpeed sensorSpeed);
Parameters
- sensorSpeed
- SensorSpeed
The speed to monitor for changes.
Remarks
Will throw FeatureNotSupportedException if not supported on device. Will throw ArgumentNullException if handler is null.
Applies to
Start(SensorSpeed, Boolean)
Start monitoring for changes to the compass.
public static void Start (Xamarin.Essentials.SensorSpeed sensorSpeed, bool applyLowPassFilter);
Parameters
- sensorSpeed
- SensorSpeed
The speed to monitor for changes.
- applyLowPassFilter
- System.Boolean
Whether or not to apply a moving average filter (only used on Android).
Remarks
Will throw FeatureNotSupportedException if not supported on device. Will throw ArgumentNullException if handler is null.