Condividi tramite


PedometerDataThreshold Classe

Definizione

Soglia per il sensore pedometro . Quando vengono soddisfatte le condizioni di soglia, il trigger del sensore verrà attivato.

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
Ereditarietà
Object Platform::Object IInspectable PedometerDataThreshold
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v2.0)

Costruttori

PedometerDataThreshold(Pedometer, Int32)

Crea un oggetto PedometerDataThreshold .

Si applica a

Vedi anche