Class PoisOnRouteFragment

java.lang.Object
androidx.fragment.app.Fragment
com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
com.trimblemaps.navigation.plugins.poisonroute.ui.PoisOnRouteFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.view.View.OnCreateContextMenuListener, androidx.activity.result.ActivityResultCaller, androidx.lifecycle.HasDefaultViewModelProviderFactory, androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner, com.trimblemaps.mapsdk.plugins.places.autocomplete.ui.PlaceAutocompleteFragment.PoiCategorySelectedListener, com.trimblemaps.mapsdk.plugins.places.autocomplete.ui.PoisResponseListener, com.trimblemaps.mapsdk.plugins.places.searchflow.ui.DwellTimeListener, com.trimblemaps.mapsdk.plugins.places.searchflow.ui.FacilityDetailsListener, com.trimblemaps.mapsdk.plugins.places.searchflow.ui.FacilityDetailsPhoneCallListener

public class PoisOnRouteFragment extends com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment

    com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment.OnLoadedListener, com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment.StopDetailsData

    Nested classes/interfaces inherited from class androidx.fragment.app.Fragment

    androidx.fragment.app.Fragment.InstantiationException, androidx.fragment.app.Fragment.SavedState
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment

    addStopOnClickListener, bottomSheet, bottomSheetShowing, CALLOUT_LAYER_ID, CLUSTER_ICON_ID, CLUSTER_ICON_NUMBER_ID, CLUSTER_LAYER_CIRCLE_ID, CLUSTER_LAYER_ID, featureCollection, featureCollectionDrawable, fragment, imagesMap, internalPlaceDetailsListener, internalPlaceSelectionListener, mapView, onMapClickListener, onMapMoveListener, onMapReadyCallback, onStyleLoadedListener, placeDetailsListener, placeSelectionListener, POIS_SOURCE_ID, poisSource, recenterClickListener, rootView, selectedLocation, selectedLocationPoints, shouldShowBottomSheet, trimbleMap, trimblePlacesPlugin

    Fields inherited from class androidx.fragment.app.Fragment

    mPreviousWho
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCustomDataToBubble(com.trimblemaps.geojson.Feature feature, com.trimblemaps.mapsdk.annotations.BubbleLayout bubbleLayout)
    Add additional data (time off route) to the individual POI bubble view
    protected void
    bindFragment(android.os.Bundle savedInstanceState)
     
    boolean
     
     
     
    android.view.View
    onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
     
    protected void
    onStyleLoaded(com.trimblemaps.mapsdk.maps.Style style)
     
    void
    setPoisOnRouteCallback(PoisOnRouteCallback poisOnRouteRequestCallback)
     
    void
     
    void
    setUpData(com.trimblemaps.geojson.FeatureCollection collection, android.graphics.drawable.Drawable drawable)
    Sets up all of the sources and layers needed for this example

    Methods inherited from class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment

    bindListeners, bindViews, callPhoneNumber, getClusterChildren, getClusterChildren, getMap, handleClickIcon, newInstance, onActivityCreated, onDestroy, onDestroyView, onDwellTimesFetched, onFacilityDetailsFetched, onLowMemory, onPause, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, refreshSource, removeOnBackPressedCallback, removePoiBubbles, setCenter, setOnLoadedListenerListener, setOnPlaceDetailsFetchedListener, setOnPlaceSelectedListener, setOnSettingsClickListener, setOnStyleLoadedListener, setPlaceChosenButtonText, setPlaceOptions, setUpInfoWindowLayer, zoomOutCameraOnCategorySelected

    Methods inherited from class androidx.fragment.app.Fragment

    dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PoisOnRouteFragment

      public PoisOnRouteFragment()
  • Method Details

    • newInstance

      public static PoisOnRouteFragment newInstance()
    • newInstance

      public static PoisOnRouteFragment newInstance(@Nullable PoisOnRouteOptions options)
    • onCreateView

      @Nullable public android.view.View onCreateView(android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
      Overrides:
      onCreateView in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
    • setPoisOnRouteCallback

      public void setPoisOnRouteCallback(PoisOnRouteCallback poisOnRouteRequestCallback)
    • setPoisOnRouteOptions

      public void setPoisOnRouteOptions(PoisOnRouteOptions poisOnRouteOptions)
    • bindFragment

      protected void bindFragment(@Nullable android.os.Bundle savedInstanceState)
      Overrides:
      bindFragment in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
    • onStyleLoaded

      protected void onStyleLoaded(@NonNull com.trimblemaps.mapsdk.maps.Style style)
      Overrides:
      onStyleLoaded in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
    • handleBackPressed

      public boolean handleBackPressed()
      Overrides:
      handleBackPressed in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
    • setUpData

      public void setUpData(com.trimblemaps.geojson.FeatureCollection collection, android.graphics.drawable.Drawable drawable)
      Sets up all of the sources and layers needed for this example
      Specified by:
      setUpData in interface com.trimblemaps.mapsdk.plugins.places.autocomplete.ui.PoisResponseListener
      Overrides:
      setUpData in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment
      Parameters:
      collection - the FeatureCollection to set equal to the globally-declared FeatureCollection
    • addCustomDataToBubble

      protected void addCustomDataToBubble(com.trimblemaps.geojson.Feature feature, com.trimblemaps.mapsdk.annotations.BubbleLayout bubbleLayout)
      Add additional data (time off route) to the individual POI bubble view
      Overrides:
      addCustomDataToBubble in class com.trimblemaps.mapsdk.plugins.places.searchflow.ui.SearchFlowFragment