Class Overview
Callback class for receiving progress reports during a restore operation.  These
 methods will all be called on your application's main thread.
 
Summary
| Public Methods | 
	 
    
        | 
            
            
            
            
            
            void
         | 
        
        onUpdate(int nowBeingRestored, String currentPackage)
        
        An indication of which package is being restored currently, out of the
 total number provided in the  restoreStarting(int) callback.  
  
   | 
	 
    
        | 
            
            
            
            
            
            void
         | 
        
        restoreFinished(int error)
        
         The restore process has completed. 
  
   | 
	 
    
        | 
            
            
            
            
            
            void
         | 
        
        restoreStarting(int numPackages)
        
         The restore operation has begun. 
  
   | 
| 
  [Expand]
   Inherited Methods  | 
   
From class
  java.lang.Object
  
   
  
    
    
	 
    
        | 
            
            
            
            
            
            Object
         | 
        
        clone()
        
         Creates and returns a copy of this Object. 
  
   |  
	 
    
        | 
            
            
            
            
            
            boolean
         | 
        
        equals(Object o)
        
         Compares this instance with the specified object and indicates if they
 are equal. 
  
   |  
	 
    
        | 
            
            
            
            
            
            void
         | 
        
        finalize()
        
         Invoked when the garbage collector has detected that this instance is no longer reachable. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            Class<?>
         | 
        
        getClass()
        
        Returns the unique instance of  Class that represents this
 object's class.  
  
   |  
	 
    
        | 
            
            
            
            
            
            int
         | 
        
        hashCode()
        
         Returns an integer hash code for this object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        notify()
        
         Causes a thread which is waiting on this object's monitor (by means of
 calling one of the wait() methods) to be woken up. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        notifyAll()
        
         Causes all threads which are waiting on this object's monitor (by means
 of calling one of the wait() methods) to be woken up. 
  
   |  
	 
    
        | 
            
            
            
            
            
            String
         | 
        
        toString()
        
         Returns a string containing a concise, human-readable description of this
 object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait()
        
         Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait(long millis, int nanos)
        
         Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
 specified timeout expires. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait(long millis)
        
         Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
 specified timeout expires. 
  
   |  
 
   
 
 | 
 
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      RestoreObserver
      ()
    
      
    
 
Public Methods
 
    
      
        public 
         
         
         
         
        void
      
      onUpdate
      (int nowBeingRestored, String currentPackage)
    
      
    
      
  An indication of which package is being restored currently, out of the
 total number provided in the restoreStarting(int) callback.  This method
 is not guaranteed to be called: if the transport is unable to obtain
 data for one or more of the requested packages, no onUpdate() call will
 occur for those packages.
 
  
      Parameters
      
        
          | nowBeingRestored
           | The index, between 1 and the numPackages parameter
   to the restoreStarting(int) callback, of the package now being
   restored.  This may be non-monotonic; it is intended purely as a rough
   indication of the backup manager's progress through the overall restore process. | 
        
        
          | currentPackage
           | The name of the package now being restored.
 | 
        
      
   
     
 
 
    
      
        public 
         
         
         
         
        void
      
      restoreFinished
      (int error)
    
      
    
      
  The restore process has completed.  This method will always be called,
 even if no individual package restore operations were attempted.
 
  
      Parameters
      
        
          | error
           | Zero on success; a nonzero error code if the restore operation
   as a whole failed.
 | 
        
      
   
     
 
 
    
      
        public 
         
         
         
         
        void
      
      restoreStarting
      (int numPackages)
    
      
    
      
  The restore operation has begun.
 
  
      Parameters
      
        
          | numPackages
           | The total number of packages being processed in
   this restore operation.
 |