Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

<init>(@NonNull source: Parcel)

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 Parcel: ClassLoader to use for reading

Public methods

describeContents

open fun describeContents(): Int

getSuperState

@Nullable fun getSuperState(): Parcelable?

writeToParcel

open fun writeToParcel(dest: Parcel!, flags: Int): Unit

Properties

CREATOR

static val CREATOR: Creator<AbsSavedState!>!

EMPTY_STATE

static val EMPTY_STATE: AbsSavedState!