ActivitySensorReadingChangedEventArgs 类

定义

表示传感器的读取更改事件的数据。

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

Windows 要求

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

注解

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

属性

Reading

获取最新的传感器读数。

适用于