LightSensor.FromIdAsync(String)
LightSensor.FromIdAsync(String)
LightSensor.FromIdAsync(String)
LightSensor.FromIdAsync(String)
LightSensor.FromIdAsync(String)
Method
Definition
Asynchronously obtains the sensor from its identifier.
public : static IAsyncOperation<LightSensor> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<LightSensor> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<LightSensor> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of LightSensor)
Windows.Devices.Sensors.LightSensor.fromIdAsync(deviceId).done( /* Your success and error handlers */ );
Parameters
- deviceId
- String String String
Returns
Returns the LightSensor object from its identifier.
Additional features and requirements
Device family |
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Feedback
Loading feedback...