Share via


CompassData Struct

Definition

Contains the orientation of the user's device.

public struct CompassData : IEquatable<Xamarin.Essentials.CompassData>
[System.Runtime.CompilerServices.IsReadOnly]
public struct CompassData : IEquatable<Xamarin.Essentials.CompassData>
Inheritance
System.ValueType
CompassData
Attributes
System.Runtime.CompilerServices.IsReadOnlyAttribute
Implements
System.IEquatable<CompassData>

Constructors

CompassData(Double)

Public constructor.

Properties

HeadingMagneticNorth

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

Methods

Equals(CompassData)

Compares the underlying doubles.

Equals(Object)

If equal to another object

GetHashCode()

Get the hash code for object.

ToString()

Current string representation of the data.

Operators

Equality(CompassData, CompassData)

Equality operator for equals

Inequality(CompassData, CompassData)

Inequality check

Applies to