Class MobileCompassService

java.lang.Object
com.gluonhq.attach.compass.impl.MobileCompassService
All Implemented Interfaces:
CompassService
Direct Known Subclasses:
AndroidCompassService, IOSCompassService

public abstract class MobileCompassService extends Object implements CompassService
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ReadOnlyDoubleProperty
    A frequently-updated heading of the compass.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the value of the property heading.
    javafx.beans.property.ReadOnlyDoubleProperty
    A frequently-updated heading of the compass.
    void
    Starts the service.
    void
    Stops the service.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

  • Constructor Details

    • MobileCompassService

      public MobileCompassService()
  • Method Details

    • getHeading

      public double getHeading()
      Gets the value of the property heading.
      Specified by:
      getHeading in interface CompassService
      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 interface CompassService
      See Also:
    • start

      public void start()
      Description copied from interface: CompassService
      Starts the service.
      Specified by:
      start in interface CompassService
    • stop

      public void stop()
      Description copied from interface: CompassService
      Stops the service.
      Specified by:
      stop in interface CompassService