Stage
  public
  
  final
  
  enum
  Stage
  
  
  
  
    extends Enum<Stage>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.support.test.runner.lifecycle.Stage> | |
| ↳ | android.support.test.runner.lifecycle.Stage | |
An enumeration of the lifecycle stages an activity undergoes.
See the Activity javadoc for detailed documentation.
Summary
| Enum values | |
|---|---|
| Stage | CREATEDIndicates that onCreate has been called. | 
| Stage | DESTROYEDIndicates that onDestroy has been called - system is shutting down the activity. | 
| Stage | PAUSEDIndicates that onPause has been called - activity is no longer in the foreground. | 
| Stage | PRE_ON_CREATEIndicates that onCreate is being called before any onCreate code executes. | 
| Stage | RESTARTEDIndicates that onResume has been called - we have navigated back to the activity. | 
| Stage | RESUMEDIndicates that onResume has been called - activity is now visible to user. | 
| Stage | STARTEDIndicates that onStart has been called. | 
| Stage | STOPPEDIndicates that onStop has been called - activity is no longer visible to the user. | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        Stage | 
      valueOf(String name)
       | 
| 
        
        
        static
        final
        
        Stage[] | 
      values()
       | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Enum
  
 | |
|  From
class 
  
    java.lang.Object
  
 | |
|  From
interface 
  
    java.lang.Comparable
  
 | |
Enum values
DESTROYED
Stage DESTROYED
Indicates that onDestroy has been called - system is shutting down the activity.
PAUSED
Stage PAUSED
Indicates that onPause has been called - activity is no longer in the foreground.
PRE_ON_CREATE
Stage PRE_ON_CREATE
Indicates that onCreate is being called before any onCreate code executes.
RESTARTED
Stage RESTARTED
Indicates that onResume has been called - we have navigated back to the activity.
STOPPED
Stage STOPPED
Indicates that onStop has been called - activity is no longer visible to the user.
Public methods
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.
