ProximitySensorReading ProximitySensorReading ProximitySensorReading ProximitySensorReading ProximitySensorReading Class

Definition

Represents a reading from the proximity sensor.

public : sealed class ProximitySensorReading
struct winrt::Windows::Devices::Sensors::ProximitySensorReading
public sealed class ProximitySensorReading
Public NotInheritable Class ProximitySensorReading
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is accessed when you invoke the GetCurrentReading method; and it is accessed when you retrieve the Reading property of the ProximityReadingChangedEventArgs object in the event callback method.

Properties

DistanceInMillimeters DistanceInMillimeters DistanceInMillimeters DistanceInMillimeters DistanceInMillimeters

Gets the distance from the proximity sensor to the detected object.

IsDetected IsDetected IsDetected IsDetected IsDetected

Gets whether or not an object is detected by the proximity sensor.

Timestamp Timestamp Timestamp Timestamp Timestamp

Gets the time for the most recent proximity sensor reading.