ActivitySensorReading ActivitySensorReading ActivitySensorReading ActivitySensorReading Class

Definition

Represents the reading of an activity sensor that provides readings for the sensor.

public : sealed class ActivitySensorReading : IActivitySensorReadingpublic sealed class ActivitySensorReading : IActivitySensorReadingPublic NotInheritable Class ActivitySensorReading Implements IActivitySensorReading// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
activity

Remarks

This object is accessed when you call the ActivitySensor.GetCurrentReadingAsync method.

Properties

Activity Activity Activity Activity

Gets the activity type for the sensor.

public : ActivityType Activity { get; }public ActivityType Activity { get; }Public ReadOnly Property Activity As ActivityType// You can use this property in JavaScript.
Value
ActivityType ActivityType ActivityType ActivityType

A ActivityType -typed value that specifies the current activity for the sensor.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
activity

Confidence Confidence Confidence Confidence

Gets the reading confidence for the sensor.

public : ActivitySensorReadingConfidence Confidence { get; }public ActivitySensorReadingConfidence Confidence { get; }Public ReadOnly Property Confidence As ActivitySensorReadingConfidence// You can use this property in JavaScript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
activity

Timestamp Timestamp Timestamp Timestamp

Gets the time at which the sensor reported the reading.

public : DateTime Timestamp { get; }public DateTimeOffset Timestamp { get; }Public ReadOnly Property Timestamp As DateTimeOffset// You can use this property in JavaScript.
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The instant in time when the sensor reported the reading.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
activity