belongs to Maven artifact androidx.car:car:1.0.0-alpha1

ListItemProvider

public abstract class ListItemProvider
extends Object

java.lang.Object
   ↳ androidx.car.widget.ListItemProvider


Supplies data as ListItem.

Summary

Nested classes

class ListItemProvider.ListProvider

A simple provider that wraps around a list. 

Public constructors

ListItemProvider()

Public methods

abstract ListItem get(int position)

Returns ListItem at requested position.

abstract int size()

Inherited methods

Public constructors

ListItemProvider

ListItemProvider ()

Public methods

get

ListItem get (int position)

Returns ListItem at requested position.

Parameters
position int

Returns
ListItem

size

int size ()

Returns
int number of total items.