SparseArrayObjectAdapter
open class SparseArrayObjectAdapter : ObjectAdapter
kotlin.Any | ||
↳ | androidx.leanback.widget.ObjectAdapter | |
↳ | androidx.leanback.widget.SparseArrayObjectAdapter |
An ObjectAdapter
implemented with a android.util.SparseArray
. This class maintains an array of objects where each object is associated with an integer key which determines its order relative to other objects.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>(presenterSelector: PresenterSelector!) Constructs an adapter with the given |
|
Constructs an adapter with the given |
|
<init>() Constructs an adapter. |
Public methods | |
---|---|
open Unit |
Clears the given key and associated item from the adapter. |
open Unit |
clear() Removes all items from this adapter, leaving it empty. |
open Any! | |
open Int |
Returns the index for the given item in the adapter. |
open Int |
Returns the index for the given key in the adapter. |
open Boolean | |
open Any! |
Returns the object for the given key, or null if no mapping for that key exists. |
open Unit |
notifyArrayItemRangeChanged(positionStart: Int, itemCount: Int) Notify that the content of a range of items changed. |
open Unit |
Sets the item for the given key. |
open Int |
size() |
Inherited functions | |
---|---|