Class NavigationView

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.ViewManager , android.view.ViewParent , android.view.accessibility.AccessibilityEventSource , androidx.core.view.NestedScrollingParent , androidx.core.view.NestedScrollingParent2 , androidx.core.view.NestedScrollingParent3 , androidx.lifecycle.LifecycleOwner , com.trimblemaps.mapsdk.maps.OnMapReadyCallback , com.trimblemaps.navigation.ui.internal.NavigationContract.View , com.trimblemaps.navigation.ui.listeners.InstructionListListener , com.trimblemaps.navigation.ui.listeners.NavigationViewButtonsListener

    
    public class NavigationView
    extends CoordinatorLayout implements LifecycleOwner, OnMapReadyCallback, NavigationContract.View, InstructionListListener, NavigationViewButtonsListener
                        

    View that creates the drop-in UI.

    Once started, this view will check if the Activity that inflated it was launched with a DirectionsRoute.

    Or, if not found, this view will look for a set of Point coordinates. In the latter case, a new DirectionsRoute will be retrieved from Router.

    Once valid data is obtained, this activity will immediately begin navigation with TrimbleMapsNavigation.

    If launched with the simulation boolean set to true, a TrimbleMapsReplayer will be initialized and begin pushing updates.

    This activity requires user permissions ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION have already been granted.

    A TrimbleMaps access token must also be set by the developer (to initialize navigation).