SavedState

class SavedState : View.BaseSavedState

Convenience for use in View.onSaveInstanceState and View.onRestoreInstanceState methods of container views that have no other state of their own to save.

More interesting containers should create their own subclass of BaseSavedState rather than trying to extend this one.

Constructors

SavedState
Link copied to clipboard
fun SavedState(superState: Parcelable?, viewStateCache: ViewStateCache)
SavedState
Link copied to clipboard
fun SavedState(source: Parcel)

Types

CREATOR
Link copied to clipboard
object CREATOR : Parcelable.Creator<ViewStateCache.SavedState>

Functions

describeContents
Link copied to clipboard
open override fun describeContents(): Int
getSuperState
Link copied to clipboard
fun getSuperState(): Parcelable
writeToParcel
Link copied to clipboard
open override fun writeToParcel(out: Parcel, flags: Int)

Properties

viewStateCache
Link copied to clipboard
val viewStateCache: ViewStateCache