| java.lang.Object | |
| ↳ | com.steerpath.sdk.maps.defaults.DefaultRoutePreviewHolder |
SDK's default RoutePreview-badge implementation. Contains title, description and "start-navigation"-button.
| 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
| |||||||||||
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.
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.