共用方式為


PedometerDataThreshold 類別

定義

計計感應器的臨界值。 當符合閾值條件時,感應器觸發程式將會啟動。

public ref class PedometerDataThreshold sealed : ISensorDataThreshold
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Sensors.IPedometerDataThresholdFactory, 131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PedometerDataThreshold final : ISensorDataThreshold
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Sensors.IPedometerDataThresholdFactory), 131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PedometerDataThreshold : ISensorDataThreshold
function PedometerDataThreshold(sensor, stepGoal)
Public NotInheritable Class PedometerDataThreshold
Implements ISensorDataThreshold
繼承
Object Platform::Object IInspectable PedometerDataThreshold
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

建構函式

PedometerDataThreshold(Pedometer, Int32)

建立 PedometerDataThreshold 物件。

適用於

另請參閱