public class

RoutePreviewFragment

extends BaseFragment<VM extends BaseViewModel>
implements RoutePreviewBottomFragment.ClickListener RoutePreviewBottomFragment.ShowAlertsListener RoutePreviewTopFragment.Listener
java.lang.Object
   ↳ Fragment
     ↳ com.mapsted.ui.base.BaseFragment<VM extends com.mapsted.ui.base.BaseViewModel>
       ↳ com.mapsted.ui.map.routing.preview.RoutePreviewFragment

Class Overview

RoutePreviewFragment. Given a RoutingResponse, this fragment shows a top and bottom route preview. The top component shows viewpager with the route legs. The bottom component has option for user to start navigation.

Summary

Nested Classes
interface RoutePreviewFragment.Listener  
class RoutePreviewFragment.Options  
Fields
public static final String TAG
Public Constructors
RoutePreviewFragment()
Public Methods
void createViewModel()
static RoutePreviewFragment newInstance(RoutePreviewFragment.Options options)
static RoutePreviewFragment newInstance()
void onAttach(Context context)
void onCloseInstructionsButtonClicked()
void onCreate(Bundle savedInstanceState)
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void onDestroy()
void onDestroyView()
void onGoClicked()
void onResume()
void onRouteChanged(int routeNumber, Route selectedRoute)
void onSegmentChange(RouteSegment routeSegment, int position)
void onViewCreated(View view, Bundle savedInstanceState)
void onViewStateRestored(Bundle savedInstanceState)
void onViewStepsClicked()
void showAlertsList(List<String> alertIds)
[Expand]
Inherited Methods
From class com.mapsted.ui.base.BaseFragment
From class java.lang.Object
From interface com.mapsted.ui.map.routing.preview.RoutePreviewBottomFragment.ClickListener
From interface com.mapsted.ui.map.routing.preview.RoutePreviewBottomFragment.ShowAlertsListener
From interface com.mapsted.ui.map.routing.preview.RoutePreviewTopFragment.Listener

Fields

public static final String TAG

Public Constructors

public RoutePreviewFragment ()

Public Methods

public void createViewModel ()

public static RoutePreviewFragment newInstance (RoutePreviewFragment.Options options)

Parameters
options options for this fragment.
Returns
  • RoutePreviewFragment

public static RoutePreviewFragment newInstance ()

public void onAttach (Context context)

public void onCloseInstructionsButtonClicked ()

public void onCreate (Bundle savedInstanceState)

public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

public void onDestroy ()

public void onDestroyView ()

public void onGoClicked ()

public void onResume ()

public void onRouteChanged (int routeNumber, Route selectedRoute)

public void onSegmentChange (RouteSegment routeSegment, int position)

public void onViewCreated (View view, Bundle savedInstanceState)

public void onViewStateRestored (Bundle savedInstanceState)

public void onViewStepsClicked ()

public void showAlertsList (List<String> alertIds)