Added in API level 1

AbsSavedState


abstract class AbsSavedState : Parcelable
kotlin.Any
   ↳ android.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

Inherited constants
Protected constructors

Constructor used when reading from a parcel.

AbsSavedState(source: Parcel!, loader: ClassLoader!)

Constructor used when reading from a parcel using a given class loader.

AbsSavedState(superState: Parcelable!)

Constructor called by derived classes when creating their SavedState objects

Public methods
open Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Parcelable!

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

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AbsSavedState!>

static AbsSavedState!

Protected constructors

AbsSavedState

Added in API level 1
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 API level 24
protected AbsSavedState(
    source: Parcel!,
    loader: ClassLoader!)

Constructor used when reading from a parcel using a given class loader. Reads the state of the superclass.

Parameters
source Parcel!: parcel to read from
loader ClassLoader!: ClassLoader to use for reading

AbsSavedState

Added in API level 1
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

Public methods

describeContents

Added in API level 1
open fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getSuperState

Added in API level 1
fun getSuperState(): Parcelable!

writeToParcel

Added in API level 1
open fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

Added in API level 1
static val CREATOR: Parcelable.Creator<AbsSavedState!>

EMPTY_STATE

Added in API level 1
static val EMPTY_STATE: AbsSavedState!