android.view
Class AbsSavedState
java.lang.Object
android.view.AbsSavedState
- All Implemented Interfaces:
- Parcelable
- Direct Known Subclasses:
- Preference.BaseSavedState, View.BaseSavedState
public abstract class AbsSavedState
- extends Object
- implements Parcelable
A Parcelable implementation that should be used by inheritance
hierarchies to ensure the state of all classes along the chain is saved.
|
Constructor Summary |
protected |
AbsSavedState(Parcel source)
Constructor used when reading from a parcel. |
protected |
AbsSavedState(Parcelable superState)
Constructor called by derived classes when creating their SavedState objects |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_STATE
public static final AbsSavedState EMPTY_STATE
CREATOR
public static final Parcelable.Creator<AbsSavedState> CREATOR
AbsSavedState
protected AbsSavedState(Parcelable superState)
- Constructor called by derived classes when creating their SavedState objects
- Parameters:
superState - The state of the superclass of this view
AbsSavedState
protected AbsSavedState(Parcel source)
- Constructor used when reading from a parcel. Reads the state of the superclass.
- Parameters:
source -
getSuperState
public final Parcelable getSuperState()
describeContents
public int describeContents()
- Description copied from interface:
Parcelable
- Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
- Specified by:
describeContents in interface Parcelable
- Returns:
- a bitmask indicating the set of special object types marshalled
by the Parcelable.
writeToParcel
public void writeToParcel(Parcel dest,
int flags)
- Description copied from interface:
Parcelable
- Flatten this object in to a Parcel.
- Specified by:
writeToParcel in interface Parcelable
- Parameters:
dest - 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.
Please submit a feedback, bug or feature