Class AndroidPositionService

    • Constructor Detail

      • AndroidPositionService

        public AndroidPositionService()
    • Method Detail

      • start

        public void start​(Parameters parameters)
        Description copied from interface: PositionService
        Starts the service. Developer must call either this method or PositionService.start() to start the service
        Specified by:
        start in interface PositionService
        Parameters:
        parameters - Parameters for configuring the service, including desired accuracy, minimum distance and time interval between notifications, or background mode
      • stop

        public void stop()
        Description copied from interface: PositionService
        Stops the service. Developer may call this method to stop the service on demand
        Specified by:
        stop in interface PositionService
      • positionProperty

        public javafx.beans.property.ReadOnlyObjectProperty<Position> positionProperty()
        Description copied from interface: PositionService
        A read-only property containing information about the device's current location on earth. The property can contain a null object when the position of the device could be determined.
        Specified by:
        positionProperty in interface PositionService
        Returns:
        a read-only object property containing the device's current location
      • getPosition

        public Position getPosition()
        Description copied from interface: PositionService
        The current position on earth of the device. Can return null when the position of the device could not be determined, for instance when the GPS has been turned off.
        Specified by:
        getPosition in interface PositionService
        Returns:
        the current position of the device