Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.27 KB

inclinometer_getdefault_846721868.md

File metadata and controls

32 lines (21 loc) · 1.27 KB
-api-id -api-type
M:Windows.Devices.Sensors.Inclinometer.GetDefault
winrt method

Windows.Devices.Sensors.Inclinometer.GetDefault

-description

Returns the default inclinometer for absolute readings.

-returns

The default inclinometer or null if no inclinometers are found.

-remarks

This method returns the same result as GetDefault(SensorReadingType.Absolute)

This method only returns values for hardware that has been integrated into the computer by the manufacturer. (The inclinometer readings are derived from multiple sensors.) 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.

-examples

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

[!code-csharpGetDefaultCS]

-see-also

GetDefault(SensorReadingType)