ExtendableSavedState

public class 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

Constants

static final Creator<ExtendableSavedState>

Public fields

final SimpleArrayMap<String, Bundle>

Public constructors

ExtendableSavedState(Parcelable superState)

Public methods

String
void
writeToParcel(Parcel out, int flags)

Constants

CREATOR

public static final Creator<ExtendableSavedState> CREATOR

Public fields

extendableStates

public final SimpleArrayMap<String, Bundle> extendableStates

Public constructors

ExtendableSavedState

public ExtendableSavedState(Parcelable superState)

Public methods

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel out, int flags)