lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 22.1.0
belongs to Maven artifact com.android.support:viewpager:28.0.0-alpha1

ViewPager.SavedState

public static class ViewPager.SavedState
extends AbsSavedState

java.lang.Object
   ↳ android.support.v4.view.AbsSavedState
     ↳ android.support.v4.view.ViewPager.SavedState


This is the persistent state that is saved by ViewPager. Only needed if you are creating a sublass of ViewPager that must save its own state, in which case it should implement a subclass of this which contains that state.

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<ViewPager.SavedState> CREATOR

Inherited fields

From class android.support.v4.view.AbsSavedState

Public constructors

ViewPager.SavedState(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

added in version 22.1.0
Creator<ViewPager.SavedState> CREATOR

Public constructors

ViewPager.SavedState

added in version 22.1.0
ViewPager.SavedState (Parcelable superState)

Parameters
superState Parcelable

Public methods

toString

String toString ()

Returns
String

writeToParcel

added in version 24.1.0
void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int