Dela via


HingeAngleSensor Class

Definition

Represents the hinge angle sensor in a dual-screen device.

public ref class HingeAngleSensor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HingeAngleSensor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HingeAngleSensor
Public NotInheritable Class HingeAngleSensor
Inheritance
Object Platform::Object IInspectable HingeAngleSensor
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

DeviceId

Gets the device identifier.

MinReportThresholdInDegrees

Gets the minimum reporting threshold for the hinge angle sensor, measured in degrees.

ReportThresholdInDegrees

Gets the reporting threshold for the hinge angle sensor, measured in degrees.

Methods

FromIdAsync(String)

Obtains the hinge angle sensor from the identifier.

GetCurrentReadingAsync()

Asynchronously retrieves the current data from the hinge angle sensor.

GetDefaultAsync()

Asynchronously retrieves the default hinge angle sensor.

GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string for identifying instances of the display panels in a hinged dual-screen device. This string is passed to the HingeAngleSensor.GetRelatedToAdjacentPanelsAsync method.

GetRelatedToAdjacentPanelsAsync(String, String)

Asynchronously retrieves a hinge angle sensor for two adjacent display panels.

Events

ReadingChanged

Occurs when the hinge angle sensor in a dual-screen device reports a change in opening angle.

Applies to

See also