MapboxLaneGuidanceAdapter

@UiThread
class MapboxLaneGuidanceAdapter(context: Context) : RecyclerView.Adapter<MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder>

Default recycler adapter to render lanes for the upcoming turn.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
inner class MapboxLaneGuidanceViewHolder(viewBinding: <Error class: unknown class>) : RecyclerView.ViewHolder

View Holder defined for the RecyclerView.Adapter

Functions

Link copied to clipboard
fun addLanes(laneIndicatorList: List<LaneIndicator>)

Invoke to add all the lanes to the recycler view.

Link copied to clipboard
Link copied to clipboard
open override fun getItemCount(): Int

Returns the total number of items in the data set held by the adapter.

Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun notifyItemChanged(p0: Int, @Nullable p1: Any?)
Link copied to clipboard
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int, @Nullable p2: Any?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard

Invoked by RecyclerView to display the data at the specified position.

Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder

Binds the given View to the position.

Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Link copied to clipboard

Invoke to remove all the lanes from the recycler view.

Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Link copied to clipboard
fun updateStyle(@StyleRes style: Int)

Invoke to change how the turn icons would look in the lane guidance view.