public static class View.BaseSavedState extends AbsSavedState
View.onSaveInstanceState()
.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<View.BaseSavedState> |
CREATOR |
EMPTY_STATE
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
BaseSavedState(Parcel source)
Constructor used when reading from a parcel.
|
BaseSavedState(Parcelable superState)
Constructor called by derived classes when creating their SavedState objects
|
BaseSavedState(Parcel source,
ClassLoader loader)
Constructor used when reading from a parcel using a given class loader.
|
Modifier and Type | Method and Description |
---|---|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
describeContents, getSuperState
public static final Parcelable.Creator<View.BaseSavedState> CREATOR
public BaseSavedState(Parcel source)
source
- parcel to read frompublic BaseSavedState(Parcel source, ClassLoader loader)
source
- parcel to read fromloader
- ClassLoader to use for readingpublic BaseSavedState(Parcelable superState)
superState
- The state of the superclass of this viewpublic void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
writeToParcel
in class AbsSavedState
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.