Altimeter Altimeter Altimeter Altimeter Altimeter Class

Definition

Provides an interface for an altimetric sensor to measure the relative altitude.

For an example implementation, see the altimeter sample.

public : sealed class Altimeter
struct winrt::Windows::Devices::Sensors::Altimeter
public sealed class Altimeter
Public NotInheritable Class Altimeter
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Version history

Windows version SDK version Value added
1709 16299 MaxBatchSize
1709 16299 ReportLatency

Properties

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the device identifier.

MaxBatchSize MaxBatchSize MaxBatchSize MaxBatchSize MaxBatchSize

Gets the maximum number of events that can be batched by the sensor.

MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval

The smallest report interval that is supported by this altimeter sensor.

ReportInterval ReportInterval ReportInterval ReportInterval ReportInterval

Gets or sets the current report interval for the altimeter.

ReportLatency ReportLatency ReportLatency ReportLatency ReportLatency

Gets or sets the delay between batches of sensor information.

Methods

GetCurrentReading() GetCurrentReading() GetCurrentReading() GetCurrentReading() GetCurrentReading()

Gets the current reading for the altimeter.

GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Returns the default altimeter sensor.

Events

ReadingChanged ReadingChanged ReadingChanged ReadingChanged ReadingChanged

Occurs each time the altimeter sensor reports a new value.

See also