Aracılığıyla paylaş


Compass.Start Method

Definition

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.

Applies to