Package 

Interface TurnBubbleFeature

  • All Implemented Interfaces:

    
    public interface TurnBubbleFeature
    
                        

    Interface defining operations for managing turn bubbles

    Turn bubbles typically display directional instructions (e.g., "Turn left", "Keep right") and contextual information for upcoming maneuvers.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit enableTurnBubble(String routeId, Integer legIndex, Integer stepIndex, TurnType turnBubbleType, String nextStreetName) Enable and configure a turn bubble for a specific navigation step.
      abstract Unit disableTurnBubble(String routeId, Integer legIndex, Integer stepIndex) Disable the turn bubble for a specific navigation step.
      abstract Unit disableAllTurnBubbles() Disable all active turn bubbles across all routes and steps.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • enableTurnBubble

         abstract Unit enableTurnBubble(String routeId, Integer legIndex, Integer stepIndex, TurnType turnBubbleType, String nextStreetName)

        Enable and configure a turn bubble for a specific navigation step.

        Parameters:
        routeId - Unique identifier for the active navigation route
        legIndex - Index of the route leg
        stepIndex - Index of the route step
        turnBubbleType - Type of turn instruction to display (e.g.
        nextStreetName - Name of the upcoming street after the turn.
      • disableTurnBubble

         abstract Unit disableTurnBubble(String routeId, Integer legIndex, Integer stepIndex)

        Disable the turn bubble for a specific navigation step.

        Parameters:
        routeId - Unique identifier for the active navigation route
        legIndex - Index of the route leg
        stepIndex - Index of the route step
      • disableAllTurnBubbles

         abstract Unit disableAllTurnBubbles()

        Disable all active turn bubbles across all routes and steps.

        This should be used when:

        • stop the navigation

        • Resetting navigation state

        • Handling significant position updates