共用方式為


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

取得感應器報告讀數的時間。

適用於