Module com.gluonhq.attach.compass
Package com.gluonhq.attach.compass.impl
Class MobileCompassService
java.lang.Object
com.gluonhq.attach.compass.impl.MobileCompassService
- All Implemented Interfaces:
CompassService
- Direct Known Subclasses:
AndroidCompassService
,IOSCompassService
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyDoubleProperty
A frequently-updated heading of the compass. -
Constructor Summary
-
Method Summary
-
Property Details
-
heading
public javafx.beans.property.ReadOnlyDoubleProperty headingProperty- Specified by:
headingProperty
in interfaceCompassService
- See Also:
-
-
Constructor Details
-
MobileCompassService
public MobileCompassService()
-
-
Method Details
-
getHeading
public double getHeading()Gets the value of the property heading.- Specified by:
getHeading
in interfaceCompassService
- Property description:
- Returns:
- The current compass heading.
-
headingProperty
public javafx.beans.property.ReadOnlyDoubleProperty headingProperty()Description copied from interface:CompassService
A frequently-updated heading of the compass.- Specified by:
headingProperty
in interfaceCompassService
- See Also:
-
start
public void start()Description copied from interface:CompassService
Starts the service.- Specified by:
start
in interfaceCompassService
-
stop
public void stop()Description copied from interface:CompassService
Stops the service.- Specified by:
stop
in interfaceCompassService
-