| java.lang.Object | ||
| ↳ | android.support.v17.leanback.widget.ObjectAdapter | |
| ↳ | android.support.v17.leanback.widget.CursorObjectAdapter | |
An ObjectAdapter implemented with a Cursor.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.ObjectAdapter
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct an adapter with the given
PresenterSelector. | |||||||||||
Construct an adapter that uses the given
Presenter for all items. | |||||||||||
Construct an adapter.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Change the underlying cursor to a new cursor.
| |||||||||||
Closes this adapter, closing the backing
Cursor as well. | |||||||||||
Returns the item for the given position.
| |||||||||||
Gets the
Cursor backing the adapter. | |||||||||||
Gets the
CursorMapper used to convert Cursor rows into
Objects. | |||||||||||
Checks whether the adapter, and hence the backing
Cursor, is closed. | |||||||||||
Sets the
CursorMapper used to convert Cursor rows into
Objects. | |||||||||||
Returns the number of items in the adapter.
| |||||||||||
Swap in a new Cursor, returning the old Cursor.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Remove an item from the cache.
| |||||||||||
Remove
count items starting at index. | |||||||||||
Called whenever the cursor changes.
| |||||||||||
Called when
setMapper(CursorMapper) is called and a different
mapper is provided. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.ObjectAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
Construct an adapter with the given PresenterSelector.
Construct an adapter that uses the given Presenter for all items.
Construct an adapter.
Change the underlying cursor to a new cursor. If there is an existing cursor it will be closed if it is different than the new cursor.
| cursor | The new cursor to be used. |
|---|
Gets the CursorMapper used to convert Cursor rows into
Objects.
Sets the CursorMapper used to convert Cursor rows into
Objects.
Returns the number of items in the adapter.
Swap in a new Cursor, returning the old Cursor. Unlike changeCursor(Cursor), the returned old Cursor is not closed.
| cursor | The new cursor to be used. |
|---|
Remove an item from the cache. This will force the item to be re-read from the data source the next time (@link #get(int)} is called.
Remove count items starting at index.
Called whenever the cursor changes.
Called when setMapper(CursorMapper) is called and a different
mapper is provided.