MapboxLaneGuidanceAdapter
class MapboxLaneGuidanceAdapter(context: Context) : RecyclerView.Adapter<MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder>
Content copied to clipboard
Default recycler adapter to render lanes for the upcoming turn.
Constructors
Types
Link copied to clipboard
inner class MapboxLaneGuidanceViewHolder(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 the lanes to the recycler view.
Link copied to clipboard
fun bindViewHolder(@NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder, p1: Int)
Content copied to clipboard
Link copied to clipboard
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder
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: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder, position: Int)
Content copied to clipboard
Invoked by RecyclerView to display the data at the specified position.
open fun onBindViewHolder( @NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder, p1: Int, @NonNull p2: MutableList<Any>)
Content copied to clipboard
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder
Content copied to clipboard
Binds the given View to the position.
Link copied to clipboard
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder): Boolean
Content copied to clipboard
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: MapboxLaneGuidanceAdapter.MapboxLaneGuidanceViewHolder)
Content copied to clipboard
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Invoke to remove all the lanes from the recycler view.
Link copied to clipboard
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Invoke to change how the turn icons would look in the lane guidance view.