added in version 27.1.0
  
    
belongs to Maven artifact com.android.support:support-content:28.0.0-alpha1
  
   
  
  
  
  
  
   
  
  
  
  
belongs to Maven artifact com.android.support:support-content:28.0.0-alpha1
LoaderQueryRunner
  public
  
  final
  
  class
  LoaderQueryRunner
  
    extends Object
  
  
  
  
  
      implements
      
        ContentPager.QueryRunner
      
  
  
| java.lang.Object | |
| ↳ | android.support.content.LoaderQueryRunner | 
A ContentPager.QueryRunner that executes queries using a LoaderManager.
 Use this when preparing ContentPager to run in an Activity or Fragment scope.
Summary
| Public constructors | |
|---|---|
| 
      LoaderQueryRunner(Context context, LoaderManager loaderMgr)
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      cancel(Query query)
      Attempt to cancel a (presumably) running query. | 
| 
        
        
        
        
        
        boolean | 
      isRunning(Query query)
       | 
| 
        
        
        
        
        
        void | 
      query(Query query, ContentPager.QueryRunner.Callback callback)
      Execute a query. | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Object
  
 | |
|  From
interface 
  
    android.support.content.ContentPager.QueryRunner
  
 | |
Public constructors
LoaderQueryRunner
    added in version 27.1.0
      
  
    LoaderQueryRunner (Context context, LoaderManager loaderMgr)
| Parameters | |
|---|---|
| context | Context | 
| loaderMgr | LoaderManager | 
Public methods
cancel
    added in version 27.1.0
      
  
    void cancel (Query query)
Attempt to cancel a (presumably) running query.
| Parameters | |
|---|---|
| query | Query: The query in question. | 
isRunning
    added in version 27.1.0
      
  
    boolean isRunning (Query query)
| Parameters | |
|---|---|
| query | Query | 
| Returns | |
|---|---|
| boolean | |
query
    added in version 27.1.0
      
  
    void query (Query query, ContentPager.QueryRunner.Callback callback)
Execute a query.
| Parameters | |
|---|---|
| query | Query: The query that will be run. This value should be handed
         back to the callback when ready to run in the background. | 
| callback | ContentPager.QueryRunner.Callback: The callback that should be called to both execute
         the query (in the background) and to receive the results
         (in the foreground). | 
