Gets the default orientation sensor.
public:
static OrientationSensor^ GetDefault()
Type: OrientationSensor
The default orientation sensor or null if no orientation sensors are found.
This method only returns values for hardware that has been integrated into the computer by the manufacturer. (The orientation-sensor 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.
Namespace: Windows.Devices.Sensors
Metadata: windows.winmd