Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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 Unit
writeToParcel(dest: Parcel!, flags: Int)

Parcelable?

open Int

Properties
static AbsSavedState!

static Creator<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

writeToParcel

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

getSuperState

@Nullable fun getSuperState(): Parcelable?

describeContents

open fun describeContents(): Int

Properties

EMPTY_STATE

static val EMPTY_STATE: AbsSavedState!

CREATOR

static val CREATOR: Creator<AbsSavedState!>!