EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

MagnetometerReading class

Applies to Windows Phone only

Represents a magnetometer reading.

Syntax


public sealed class MagnetometerReading

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The MagnetometerReading class has these types of members:

Properties

The MagnetometerReading class has these properties.

PropertyAccess typeDescription

DirectionalAccuracy

Read-onlyGets the magnetometer's directional accuracy.

MagneticFieldX

Read-onlyGets the magnetic field strength in microteslas along the X axis.

MagneticFieldY

Read-onlyGets the magnetic field strength in microteslas along the Y axis.

MagneticFieldZ

Read-onlyGets the magnetic field strength in microteslas along the Z axis.

Timestamp

Read-onlyGets the time at which the sensor reported the reading.

 

Remarks

This object is accessed when you invoke the GetCurrentReading method; and, it is accessed when you retrieve the Reading property of the MagnetometerReadingChangedEventArgs object in the event callback method.

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.winmd

See also

Object

 

 

Mostrar:
© 2014 Microsoft