MapboxUpcomingManeuverAdapter
class MapboxUpcomingManeuverAdapter(context: Context) : RecyclerView.Adapter<MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder>
Content copied to clipboard
Default recycler adapter to render upcoming maneuvers for the RouteLeg.
Constructors
Types
Link copied to clipboard
inner class MapboxUpcomingManeuverViewHolder(val viewBinding: <ERROR CLASS>) : RecyclerView.ViewHolder
Content copied to clipboard
View Holder defined for the RecyclerView.Adapter
Functions
Link copied to clipboard
Invoke to add all upcoming maneuvers to the recycler view.
Link copied to clipboard
fun bindViewHolder(@NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder, p1: Int)
Content copied to clipboard
Link copied to clipboard
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder
Content copied to clipboard
Link copied to clipboard
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onBindViewHolder(holder: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder, position: Int)
Content copied to clipboard
Invoked by RecyclerView to display the data at the specified position.
open fun onBindViewHolder( @NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder, p1: Int, @NonNull p2: MutableList<Any>)
Content copied to clipboard
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder
Content copied to clipboard
Binds the given View to the position.
Link copied to clipboard
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder): Boolean
Content copied to clipboard
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Allows you to apply styling defined by passed maneuverViewOptions.
Link copied to clipboard
Given a set of RouteShield, the function maintains a set of RouteShield that is used to render the shield on the view
Link copied to clipboard
fun updateUpcomingManeuverIconStyle(contextThemeWrapper: ContextThemeWrapper)
Content copied to clipboard
Allows you to change the styling of MapboxTurnIconManeuver.