AbsSavedState
abstract class AbsSavedState : Parcelable
kotlin.Any | |
↳ | androidx.customview.view.AbsSavedState |
A Parcelable
implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved.
Summary
Protected constructors | |
---|---|
<init>(@NonNull superState: Parcelable) Constructor called by derived classes when creating their SavedState objects |
|
Constructor used when reading from a parcel. |
|
<init>(@NonNull source: Parcel, @Nullable loader: ClassLoader?) Constructor used when reading from a parcel. |
Public methods | |
---|---|
open Int | |
Parcelable? | |
open Unit |
writeToParcel(dest: Parcel!, flags: Int) |
Properties | |
---|---|
static Creator<AbsSavedState!>! | |
static AbsSavedState! |
Protected constructors
<init>
protected AbsSavedState(@NonNull superState: Parcelable)
Constructor called by derived classes when creating their SavedState objects
Parameters | |
---|---|
superState |
Parcelable: The state of the superclass of this view |
<init>
protected AbsSavedState(@NonNull source: Parcel)
Constructor used when reading from a parcel. Reads the state of the superclass.
Parameters | |
---|---|
source |
Parcel: parcel to read from |
<init>
protected AbsSavedState(
@NonNull source: Parcel,
@Nullable loader: ClassLoader?)
Constructor used when reading from a parcel. Reads the state of the superclass.
Parameters | |
---|---|
source |
Parcel: parcel to read from |
loader |
ClassLoader?: ClassLoader to use for reading |
Public methods
describeContents
open fun describeContents(): Int
getSuperState
@Nullable fun getSuperState(): Parcelable?
Properties
CREATOR
static val CREATOR: Creator<AbsSavedState!>!
EMPTY_STATE
static val EMPTY_STATE: AbsSavedState!