ExtendableSavedState

public class ExtendableSavedState
extends AbsSavedState

java.lang.Object
   ↳ android.support.v4.view.AbsSavedState
     ↳ com.google.android.material.stateful.ExtendableSavedState


SavedState for widgets that want to save and restore their own state in onSaveInstanceState(). Supports widgets whose state is composed or delegated out to multiple components.

Widgets with only composed or delegated state can directly instantiate this class and write to extendableStates. Widgets with additional state should subclass ExtendableSavedState rather than trying to force the additional state into extendableStates.

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<ExtendableSavedState> CREATOR

public final SimpleArrayMap<String, Bundle> extendableStates

Inherited fields

From class android.support.v4.view.AbsSavedState

Public constructors

ExtendableSavedState(Parcelable superState)

Public methods

String toString()
void writeToParcel(Parcel out, int flags)

Inherited methods

From class android.support.v4.view.AbsSavedState
From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Creator<ExtendableSavedState> CREATOR

extendableStates

SimpleArrayMap<String, Bundle> extendableStates

Public constructors

ExtendableSavedState

ExtendableSavedState (Parcelable superState)

Parameters
superState Parcelable

Public methods

toString

String toString ()

Returns
String

writeToParcel

void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int