ProximitySensor.FromId(String) ProximitySensor.FromId(String) ProximitySensor.FromId(String) ProximitySensor.FromId(String) ProximitySensor.FromId(String) Method

Definition

Obtains the proximity sensor from its identifier.

public : static ProximitySensor FromId(Platform::String sensorId)
static ProximitySensor FromId(winrt::hstring sensorId) const;
public static ProximitySensor FromId(String sensorId)
Public Shared Function FromId(sensorId As String) As ProximitySensor
var proximitySensor = Windows.Devices.Sensors.ProximitySensor.fromId(sensorId);

Parameters

sensorId
String String String

The sensor identifier.

Returns