Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
   
   
  
    
  
  
    
    
  
MainThread 
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
  
  
  abstract
  @interface
  MainThread
  
  
      implements
      
        Annotation 
      
  
  
  
    
    android.support.test.espresso.base.MainThread
     
   
  
  
    
Annotates an Executor that executes tasks on the main thread 
Summary 
 
  
  
    
    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."],[],[]]