Class IOSMagnetometerService
- java.lang.Object
-
- com.gluonhq.attach.magnetometer.impl.IOSMagnetometerService
-
- All Implemented Interfaces:
MagnetometerService
public class IOSMagnetometerService extends java.lang.Object implements MagnetometerService
-
-
Field Summary
-
Fields inherited from interface com.gluonhq.attach.magnetometer.MagnetometerService
FREQUENCY
-
-
Constructor Summary
Constructors Constructor Description IOSMagnetometerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MagnetometerReading
getReading()
Returns a single reading from the magnetometer.javafx.beans.property.ReadOnlyObjectProperty<MagnetometerReading>
readingProperty()
A frequently-updated reading from the magnetometer.
-
-
-
Method Detail
-
readingProperty
public javafx.beans.property.ReadOnlyObjectProperty<MagnetometerReading> readingProperty()
Description copied from interface:MagnetometerService
A frequently-updated reading from the magnetometer.- Specified by:
readingProperty
in interfaceMagnetometerService
- Returns:
- A property containing a frequently-updated magnetometer reading.
-
getReading
public MagnetometerReading getReading()
Description copied from interface:MagnetometerService
Returns a single reading from the magnetometer.- Specified by:
getReading
in interfaceMagnetometerService
- Returns:
- the current magnetometer reading
-
-