CustomSensorReading
CustomSensorReading
CustomSensorReading
CustomSensorReading
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Represents a property set of key/value pairs that contain the custom data sent from the sensor’s driver to the app.
Each key is a string that represents a PROPERTYKEY. Each value can be an integer, Boolean, float, or double.
public : sealed class CustomSensorReading : ICustomSensorReadingpublic sealed class CustomSensorReading : ICustomSensorReadingPublic NotInheritable Class CustomSensorReading Implements ICustomSensorReading// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
This object is accessed when you call the GetCurrentReading method; and, it is accessed when you retrieve the Reading property of the CustomSensorReadingChangedEventArgs object in the event callback method.
Properties
PerformanceCount PerformanceCount PerformanceCount PerformanceCount
Prerelease. Gets the performance count associated with the reading. This allows the reading to be synchronized with other devices and processes on the system.
public : IReference<TimeSpan> PerformanceCount { get; }public Nullable<TimeSpan> PerformanceCount { get; }Public ReadOnly Property PerformanceCount As Nullable<TimeSpan>// You can use this property in JavaScript.
- Value
- IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>
The performance count for the reading. Null if this property is not supported on the sensor.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Properties Properties Properties Properties
Gets the property set for the sensor.
public : IMapView<string, object> Properties { get; }public IReadOnlyDictionary<string, object> Properties { get; }Public ReadOnly Property Properties As IReadOnlyDictionary<string, object>// You can use this property in JavaScript.
- Value
- IMapView<PlatForm::String, PlatForm::Object> IReadOnlyDictionary<string, object> IReadOnlyDictionary<string, object> IReadOnlyDictionary<string, object>
The property set for the sensor. This set contains the key/value pair for each property in the set.
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.