Class IOSAccelerometerService
- java.lang.Object
-
- com.gluonhq.attach.accelerometer.impl.IOSAccelerometerService
-
- All Implemented Interfaces:
AccelerometerService
public class IOSAccelerometerService extends java.lang.Object implements AccelerometerService
-
-
Field Summary
-
Fields inherited from interface com.gluonhq.attach.accelerometer.AccelerometerService
FILTER_GRAVITY, FREQUENCY
-
-
Constructor Summary
Constructors Constructor Description IOSAccelerometerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyObjectProperty<Acceleration>
accelerationProperty()
A frequently-updated reading from the accelerometer.Acceleration
getCurrentAcceleration()
Returns a single reading from the accelerometer.
-
-
-
Method Detail
-
getCurrentAcceleration
public Acceleration getCurrentAcceleration()
Description copied from interface:AccelerometerService
Returns a single reading from the accelerometer.- Specified by:
getCurrentAcceleration
in interfaceAccelerometerService
- Returns:
- the current accelerometer reading
-
accelerationProperty
public javafx.beans.property.ReadOnlyObjectProperty<Acceleration> accelerationProperty()
Description copied from interface:AccelerometerService
A frequently-updated reading from the accelerometer.- Specified by:
accelerationProperty
in interfaceAccelerometerService
- Returns:
- A property containing a frequently-updated accelerometer reading.
-
-