RemoteCollectionItems
class RemoteCollectionItems : Parcelable
| kotlin.Any | |
| ↳ | android.widget.RemoteViews.RemoteCollectionItems |
Representation of a fixed list of items to be displayed in a RemoteViews collection.
Summary
| Nested classes | |
|---|---|
|
Builder class for |
|
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Int |
Returns the number of elements in the collection. |
| Long |
Returns the id for |
| RemoteViews |
getItemView(position: Int)Returns the |
| Int |
Returns the view type count for the collection when used in an adapter |
| Boolean |
Indicates whether the item ids are stable across changes to the underlying data. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<RemoteViews.RemoteCollectionItems!> | |
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getItemCount
fun getItemCount(): Int
Returns the number of elements in the collection.
| Return | |
|---|---|
Int |
Count of items. |
getItemId
fun getItemId(position: Int): Long
Returns the id for position. See hasStableIds() for whether this id should be considered meaningful across collection updates.
| Return | |
|---|---|
Long |
Id for the position. |
getItemView
fun getItemView(position: Int): RemoteViews
Returns the RemoteViews to display at position.
| Return | |
|---|---|
RemoteViews |
RemoteViews for the position. This value cannot be null. |
getViewTypeCount
fun getViewTypeCount(): Int
Returns the view type count for the collection when used in an adapter
| Return | |
|---|---|
Int |
Count of view types for the collection when used in an adapter. |
hasStableIds
fun hasStableIds(): Boolean
Indicates whether the item ids are stable across changes to the underlying data.
| Return | |
|---|---|
Boolean |
True if the same id always refers to the same object. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<RemoteViews.RemoteCollectionItems!>