MapboxUpcomingManeuverAdapter

Default recycler adapter to render upcoming maneuvers for the RouteLeg.

Constructors

MapboxUpcomingManeuverAdapter
Link copied to clipboard
fun MapboxUpcomingManeuverAdapter(context: Context)

Types

MapboxUpcomingManeuverViewHolder
Link copied to clipboard
inner class MapboxUpcomingManeuverViewHolder(viewBinding: <ERROR CLASS>) : RecyclerView.ViewHolder
View Holder defined for the RecyclerView.Adapter

Functions

addUpcomingManeuvers
Link copied to clipboard
fun addUpcomingManeuvers(upcomingManeuvers: List<Maneuver>)
Invoke to add all upcoming maneuvers to the recycler view.
bindViewHolder
Link copied to clipboard
createViewHolder
Link copied to clipboard
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getItemCount
Link copied to clipboard
open override fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
getItemId
Link copied to clipboard
open fun getItemId(p0: Int): Long
getItemViewType
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasObservers
Link copied to clipboard
fun hasObservers(): Boolean
hasStableIds
Link copied to clipboard
fun hasStableIds(): Boolean
notifyDataSetChanged
Link copied to clipboard
fun notifyDataSetChanged()
notifyItemChanged
Link copied to clipboard
fun notifyItemChanged(p0: Int)
fun notifyItemChanged(p0: Int, @Nullable() p1: Any?)
notifyItemInserted
Link copied to clipboard
fun notifyItemInserted(p0: Int)
notifyItemMoved
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
notifyItemRangeChanged
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int)
fun notifyItemRangeChanged(p0: Int, p1: Int, @Nullable() p2: Any?)
notifyItemRangeInserted
Link copied to clipboard
fun notifyItemRangeInserted(p0: Int, p1: Int)
notifyItemRangeRemoved
Link copied to clipboard
fun notifyItemRangeRemoved(p0: Int, p1: Int)
notifyItemRemoved
Link copied to clipboard
fun notifyItemRemoved(p0: Int)
onAttachedToRecyclerView
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull() p0: RecyclerView)
onBindViewHolder
Link copied to clipboard
open override fun onBindViewHolder(holder: MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder, position: Int)
Invoked by RecyclerView to display the data at the specified position.
onCreateViewHolder
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MapboxUpcomingManeuverAdapter.MapboxUpcomingManeuverViewHolder
Binds the given View to the position.
onDetachedFromRecyclerView
Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull() p0: RecyclerView)
onViewRecycled
Link copied to clipboard
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)
setHasStableIds
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
toString
Link copied to clipboard
open fun toString(): String
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)
updateRoadShields
Link copied to clipboard
fun updateRoadShields(shieldMap: Map<String, RoadShield?>)
Given a Map of id to RoadShield, the function maintains a map of id to RoadShield that is used to render the shield on the view
fun updateUpcomingManeuverStepDistanceTextAppearance(@StyleRes() style: Int)
Allows you to change the text appearance of step distance text in upcoming maneuver list.
fun updateUpcomingPrimaryManeuverTextAppearance(@StyleRes() style: Int)
Allows you to change the text appearance of primary maneuver text in upcoming maneuver list.
fun updateUpcomingSecondaryManeuverTextAppearance(@StyleRes() style: Int)
Allows you to change the text appearance of secondary maneuver text in upcoming maneuver list.