SimpleOrientationSensor.FromIdAsync(String) SimpleOrientationSensor.FromIdAsync(String) SimpleOrientationSensor.FromIdAsync(String) SimpleOrientationSensor.FromIdAsync(String) SimpleOrientationSensor.FromIdAsync(String) Method

Definition

Asynchronously retrieves a SimpleOrientationSensor object based on the specified device identifier.

public : static IAsyncOperation<SimpleOrientationSensor> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<SimpleOrientationSensor> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<SimpleOrientationSensor> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of SimpleOrientationSensor)
Windows.Devices.Sensors.SimpleOrientationSensor.fromIdAsync(deviceId).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The SimpleOrientationSensor device identifier.

Returns

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)