OrientationSensorReading OrientationSensorReading OrientationSensorReading OrientationSensorReading Class

Definition

Represents an orientation-sensor reading.

public : sealed class OrientationSensorReading : IOrientationSensorReading, IOrientationSensorReadingYawAccuracy
public sealed class OrientationSensorReading : IOrientationSensorReading, IOrientationSensorReadingYawAccuracy
Public NotInheritable Class OrientationSensorReading Implements IOrientationSensorReading, IOrientationSensorReadingYawAccuracy
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is accessed when you invoke the GetCurrentReading method; and, it is accessed when you retrieve the Reading property of the OrientationSensorReadingChangedEventArgs object in the event callback method..

Properties

PerformanceCount PerformanceCount PerformanceCount PerformanceCount

Gets the performance count associated with the reading. This allows the reading to be synchronized with other devices and processes on the system.

public : IReference<TimeSpan> PerformanceCount { get; }
public Nullable<TimeSpan> PerformanceCount { get; }
Public ReadOnly Property PerformanceCount As Nullable<TimeSpan>
var nullable = orientationSensorReading.performanceCount;
Value
IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>

The performance count for the reading. Null if this property is not supported on the sensor.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Properties Properties Properties Properties

Gets the data properties reported by the sensor.

public : IMapView<Platform::String, Platform::Object> Properties { get; }
public IReadOnlyDictionary<string, object> Properties { get; }
Public ReadOnly Property Properties As IReadOnlyDictionary<string, object>
var iReadOnlyDictionary = orientationSensorReading.properties;
Value
IMapView<Platform::String, Platform::Object> IReadOnlyDictionary<string, object> IReadOnlyDictionary<string, object> IReadOnlyDictionary<string, object>

Contains a key/value pair for each data property reported by the sensor for the given reading. The key is a string of the property key, and the value is the value of the property that the key represents.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Quaternion Quaternion Quaternion Quaternion

Gets the Quaternion for the current orientation-sensor reading.

public : SensorQuaternion Quaternion { get; }
public SensorQuaternion Quaternion { get; }
Public ReadOnly Property Quaternion As SensorQuaternion
var sensorQuaternion = orientationSensorReading.quaternion;
Value
SensorQuaternion SensorQuaternion SensorQuaternion SensorQuaternion

The Quaternion for the current orientation-sensor reading.

RotationMatrix RotationMatrix RotationMatrix RotationMatrix

Gets the rotation matrix for the current orientation-sensor reading.

public : SensorRotationMatrix RotationMatrix { get; }
public SensorRotationMatrix RotationMatrix { get; }
Public ReadOnly Property RotationMatrix As SensorRotationMatrix
var sensorRotationMatrix = orientationSensorReading.rotationMatrix;
Value
SensorRotationMatrix SensorRotationMatrix SensorRotationMatrix SensorRotationMatrix

The rotation matrix for the current orientation-sensor reading.

Timestamp Timestamp Timestamp Timestamp

Gets the time at which the sensor reported the reading.

public : DateTime Timestamp { get; }
public DateTimeOffset Timestamp { get; }
Public ReadOnly Property Timestamp As DateTimeOffset
var dateTimeOffset = orientationSensorReading.timestamp;
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The time at which the sensor reported the reading.

YawAccuracy YawAccuracy YawAccuracy YawAccuracy

Gets the orientation sensor's z-axis accuracy.

public : MagnetometerAccuracy YawAccuracy { get; }
public MagnetometerAccuracy YawAccuracy { get; }
Public ReadOnly Property YawAccuracy As MagnetometerAccuracy
var magnetometerAccuracy = orientationSensorReading.yawAccuracy;

See Also