Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
   
   
  
    
  
  
    
    
  
  
    added in 
version 22.1.0 
  
    
  belongs to Maven artifact com.android.support:viewpager:28.0.0-alpha1
  
  
  
  
 
This package is part of the
Android support library  which
is no longer maintained.
The support library has been superseded by AndroidX 
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating  existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings . 
 
  public
  static
  
  
  class
  ViewPager.SavedState
  
  
  
  
    extends AbsSavedState 
  
  
  
  
  
  
  
    
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
  
  
    
    
    
      
      
    
    
        int
          CONTENTS_FILE_DESCRIPTOR
          
          
    
         
     
    
    
    
        int
          PARCELABLE_WRITE_RETURN_VALUE
          
          
    
         
     
    
    
     
   
    
Inherited methods 
  
     From
class
  
    android.support.v4.view.AbsSavedState 
  
  
  
     From
class
  
    java.lang.Object
  
  
  
  
    
      
  
  
  
  
    
        
        
        
        
        
        Object
    
      
      clone()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        boolean
    
      
      equals(Object arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        void
    
      
      finalize()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        Class<?>
    
      
      getClass()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        int
    
      
      hashCode()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notify()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      notifyAll()
      
      
     
   
  
  
  
  
  
    
        
        
        
        
        
        String
    
      
      toString()
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0, int arg1)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait(long arg0)
      
      
     
   
  
  
  
  
  
    
        
        
        
        final
        
        void
    
      
      wait()
      
      
     
   
  
    
   
 
  
  
     From
interface
  
    android.os.Parcelable 
  
  
  
  
    
      
  
  
  
  
    
        abstract
        
        
        
        
        int
    
      
      describeContents()
      
      
     
   
  
  
  
  
  
    
        abstract
        
        
        
        
        void
    
      
      writeToParcel(Parcel  arg0, int arg1)
      
      
     
   
  
    
   
 
  
Fields 
Public constructors 
    
    
ViewPager.SavedState (Parcelable  superState) 
    
    Parameters 
        superState
          Parcelable  
       
    
 
Public methods 
    toString 
    
String toString () 
    
 
    writeToParcel 
    
void writeToParcel (Parcel  out, 
                int flags) 
    
    Parameters 
        out
          Parcel  
       
      
        flags
          int  
       
    
 
 
  
  
    
    Annotations 
      
    Interfaces 
      
    Classes 
      
     
  
 
 
  
  
     
  
    
    
      
       
    
    
  
  
 
  Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
 
 
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]