public class

DefaultRoutePreviewHolder

extends Object
implements RoutePreviewHolder
java.lang.Object
   ↳ com.steerpath.sdk.maps.defaults.DefaultRoutePreviewHolder

Class Overview

SDK's default RoutePreview-badge implementation. Contains title, description and "start-navigation"-button.

Summary

Public Constructors
DefaultRoutePreviewHolder(SteerpathMapView mapView)
Public Methods
View create(Context context, RoutePlan plan, DirectionsResponse directions)
Create View that should contain at least TextViews for route title and description.
boolean useInBuiltActionButton()
Return false in case your RouteStepViewHolder will implement own start button.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.steerpath.sdk.maps.RoutePreviewHolder

Public Constructors

public DefaultRoutePreviewHolder (SteerpathMapView mapView)

Public Methods

public View create (Context context, RoutePlan plan, DirectionsResponse directions)

Create View that should contain at least TextViews for route title and description.

Usually there is no need for app to call this. SDK calls this internally whenever needed.

public boolean useInBuiltActionButton ()

Return false in case your RouteStepViewHolder will implement own start button. In-built button is FloatingActionButton and has fixed position in layout.

Usually there is no need for app to call this. SDK calls this internally whenever needed.