Class InstructionView

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.ViewManager , android.view.ViewParent , android.view.accessibility.AccessibilityEventSource , androidx.lifecycle.LifecycleObserver , com.trimblemaps.navigation.ui.feedback.FeedbackBottomSheetListener

    @UiThread()
    public class InstructionView
    extends RelativeLayout implements LifecycleObserver, FeedbackBottomSheetListener
                        

    A view that can be used to display upcoming maneuver information and control voice instruction mute / unmute.

    An ImageView is used to display the maneuver image on the left. Two TextViews are used to display distance to the next maneuver, as well as the name of the destination / maneuver name / instruction based on what data is available

    To automatically have this view update with information from TrimbleMapsNavigation, add the view as a RouteProgressObserver and / or OffRouteObserver