SimpleOrientationSensorOrientationChangedEventArgs 类

定义

为传感器读取更改事件提供数据。

public ref class SimpleOrientationSensorOrientationChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SimpleOrientationSensorOrientationChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SimpleOrientationSensorOrientationChangedEventArgs
Public NotInheritable Class SimpleOrientationSensorOrientationChangedEventArgs
继承
Object Platform::Object IInspectable SimpleOrientationSensorOrientationChangedEventArgs
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

当应用支持 OrientationChanged 事件时,将访问此对象。

属性

Orientation

获取当前传感器方向。

Timestamp

获取当前传感器读取的时间。

适用于