Share via


Gyrometer.GetDefault Method

Definition

Returns the default gyrometer.

public:
 static Gyrometer ^ GetDefault();
 static Gyrometer GetDefault();
public static Gyrometer GetDefault();
function getDefault()
Public Shared Function GetDefault () As Gyrometer

Returns

The default gyrometer or null if no integrated gyrometers are found.

Examples

The following example demonstrates how a UWP app built with XAML and C# used this method to establish a connection to the default gyrometer.

_gyrometer = Gyrometer.GetDefault();

Remarks

This method only returns values for a gyrometer that has been integrated into the computer by the manufacturer. A null value will be returned if the specified sensor is not available in the system.

When a system is in Connected Standby, a call to the GetDefault method will return immediately with a null result.

Applies to