public static class

DirectionsAssetHelper.DefaultChooser

extends Object
implements DirectionsAssetHelper.IconChooser
java.lang.Object
   ↳ com.steerpath.sdk.maps.defaults.DirectionsAssetHelper.DefaultChooser

Class Overview

SDK's Default IconChooser for deciding which drawable should be shown for RouteStep.

Summary

Public Constructors
DefaultChooser()
Public Methods
int getDestinationReachedDrawableRes()
Return drawable resource specifically for the "destination reached" step.
int getDrawable(Context context, RouteStep step)
Selects drawable resource for given RouteStep.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.steerpath.sdk.maps.defaults.DirectionsAssetHelper.IconChooser

Public Constructors

public DefaultChooser ()

Public Methods

public int getDestinationReachedDrawableRes ()

Return drawable resource specifically for the "destination reached" step.

public int getDrawable (Context context, RouteStep step)

Selects drawable resource for given RouteStep. Uses RouteStep.getAction() for deciding correct step.

Returns
  • 0 if not handled.