ListProvider

open class ListProvider<VH : ListItem.ViewHolder!> : ListItemProvider<ListItem.ViewHolder!>
kotlin.Any
   ↳ androidx.car.widget.ListItemProvider<androidx.car.widget.ListItem.ViewHolder>
   ↳ androidx.car.widget.ListItemProvider.ListProvider

A simple provider that wraps around a list.

Summary

Public constructors

<init>(@NonNull items: MutableList<ListItem<VH>!>)

Public methods

open ListItem<VH>
get(position: Int)

open Int

Public constructors

<init>

ListProvider(@NonNull items: MutableList<ListItem<VH>!>)

Public methods

get

@NonNull open fun get(position: Int): ListItem<VH>

size

open fun size(): Int