LoaderQueryRunner
public
final
class
LoaderQueryRunner
extends Object
implements
ContentPager.QueryRunner
| java.lang.Object
|
| ↳ |
androidx.contentpager.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
Inherited methods |
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()
|
|
|
|
Public constructors
LoaderQueryRunner
public LoaderQueryRunner (Context context,
LoaderManager loaderMgr)
| Parameters |
context |
Context |
loaderMgr |
LoaderManager |
Public methods
cancel
public void cancel (Query query)
Attempt to cancel a (presumably) running query.
| Parameters |
query |
Query: The query in question.
|
isRunning
public boolean isRunning (Query query)
query
public 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).
|