Udostępnij za pośrednictwem


ActivitySensor.GetDefaultAsync Method

Definition

Asynchronously obtains the default sensor.

public:
 static IAsyncOperation<ActivitySensor ^> ^ GetDefaultAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ActivitySensor> GetDefaultAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ActivitySensor> GetDefaultAsync();
function getDefaultAsync()
Public Shared Function GetDefaultAsync () As IAsyncOperation(Of ActivitySensor)

Returns

Asynchronously returns a ActivitySensor object that represents the default sensor.

Attributes

Windows requirements

App capabilities
activity

Applies to