SimpleOrientationSensorOrientationChangedEventArgs SimpleOrientationSensorOrientationChangedEventArgs SimpleOrientationSensorOrientationChangedEventArgs SimpleOrientationSensorOrientationChangedEventArgs Class

Definition

Provides data for the sensor reading–changed event.

public : sealed class SimpleOrientationSensorOrientationChangedEventArgs : ISimpleOrientationSensorOrientationChangedEventArgs
public sealed class SimpleOrientationSensorOrientationChangedEventArgs : ISimpleOrientationSensorOrientationChangedEventArgs
Public NotInheritable Class SimpleOrientationSensorOrientationChangedEventArgs Implements ISimpleOrientationSensorOrientationChangedEventArgs
// 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 your app supports the OrientationChanged event.

Properties

Orientation Orientation Orientation Orientation

Gets the current sensor orientation.

public : SimpleOrientation Orientation { get; }
public SimpleOrientation Orientation { get; }
Public ReadOnly Property Orientation As SimpleOrientation
var simpleOrientation = simpleOrientationSensorOrientationChangedEventArgs.orientation;

Timestamp Timestamp Timestamp Timestamp

Gets the time of the current sensor reading.

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

The time of the current sensor reading.