Class MobileCompassService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getHeading()
      Returns the compass heading, represented as a value between 0.0 and 359.99, where 0.0 is north.
      javafx.beans.property.ReadOnlyDoubleProperty headingProperty()
      A frequently-updated heading of the compass.
      void start()
      Starts the service.
      void stop()
      Stops the service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MobileCompassService

        public MobileCompassService()
    • Method Detail

      • getHeading

        public double getHeading()
        Description copied from interface: CompassService
        Returns the compass heading, represented as a value between 0.0 and 359.99, where 0.0 is north. If there is no heading data available, -1.0 will be returned to represent this error state.
        Specified by:
        getHeading in interface CompassService
        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
        Returns:
        A property containing a frequently-updated compass heading.