Share via


CompassData Struct

Definition

Contains the orientation of the user's device.

public value class CompassData : IEquatable<Microsoft::Maui::Devices::Sensors::CompassData>
public readonly struct CompassData : IEquatable<Microsoft.Maui.Devices.Sensors.CompassData>
type CompassData = struct
Public Structure CompassData
Implements IEquatable(Of CompassData)
Inheritance
CompassData
Implements

Constructors

CompassData(Double)

Initializes a new instance of the CompassData class.

Properties

HeadingMagneticNorth

The heading (measured in degrees) relative to magnetic north.

Methods

Equals(CompassData)

Compares the underlying HeadingMagneticNorth instances.

Equals(Object)

Compares the underlying CompassData instances.

GetHashCode()

Get the hash code for object.

ToString()

Returns a string representation of the current values of HeadingMagneticNorth.

Operators

Equality(CompassData, CompassData)

Equality operator for equals.

Inequality(CompassData, CompassData)

Inequality operator.

Applies to