ActivitySensorReading 类

定义

表示为传感器提供读数的活动传感器的读取。

public ref class ActivitySensorReading 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 ActivitySensorReading 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 ActivitySensorReading
Public NotInheritable Class ActivitySensorReading
继承
Object Platform::Object IInspectable ActivitySensorReading
属性

Windows 要求

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

注解

调用 ActivitySensor.GetCurrentReadingAsync 方法时会访问此对象。

属性

Activity

获取传感器的活动类型。

Confidence

获取传感器的读取置信度。

Timestamp

获取传感器报告读数的时间。

适用于