AbsSavedState


abstract class AbsSavedState : Parcelable

Known direct subclasses
CoordinatorLayout.SavedState
DrawerLayout.SavedState

State persisted across instances

Toolbar.SavedState
ViewPager.SavedState

This is the persistent state that is saved by ViewPager.


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

Constructor used when reading from a parcel.

Constructor called by derived classes when creating their SavedState objects

AbsSavedState(source: Parcel, loader: ClassLoader?)

Constructor used when reading from a parcel.

Public functions

Int
Parcelable?
Unit
writeToParcel(dest: Parcel!, flags: Int)

Constants

CREATOR

Added in 1.0.0
const val CREATORParcelable.Creator<AbsSavedState!>!

EMPTY_STATE

Added in 1.0.0
const val EMPTY_STATEAbsSavedState!

Protected constructors

AbsSavedState

Added in 1.0.0
protected AbsSavedState(source: Parcel)

Constructor used when reading from a parcel. Reads the state of the superclass.

Parameters
source: Parcel

parcel to read from

AbsSavedState

Added in 1.0.0
protected AbsSavedState(superState: Parcelable)

Constructor called by derived classes when creating their SavedState objects

Parameters
superState: Parcelable

The state of the superclass of this view

AbsSavedState

Added in 1.0.0
protected AbsSavedState(source: Parcel, 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 functions

describeContents

Added in 1.0.0
fun describeContents(): Int

getSuperState

Added in 1.0.0
fun getSuperState(): Parcelable?

writeToParcel

Added in 1.0.0
fun writeToParcel(dest: Parcel!, flags: Int): Unit