Прочитај на енглеском

Делите путем


CompassData Struct

Definition

Contains the orientation of the user's device.

C#
public readonly struct CompassData : IEquatable<Microsoft.Maui.Devices.Sensors.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

Производ Верзије
.NET MAUI 8, 9