ProximitySensor.GetCurrentReading ProximitySensor.GetCurrentReading ProximitySensor.GetCurrentReading ProximitySensor.GetCurrentReading ProximitySensor.GetCurrentReading Method

Definition

Gets the current reading for the proximity sensor.

public : ProximitySensorReading GetCurrentReading()
ProximitySensorReading GetCurrentReading() const;
public ProximitySensorReading GetCurrentReading()
Public Function GetCurrentReading() As ProximitySensorReading
var proximitySensorReading = proximitySensor.getCurrentReading();

Returns

Indicates whether or not the proximity sensor detects an object, and if so, the distance to that object.