public final class LoaderQueryRunner
extends Object implements ContentPager.QueryRunner

   ↳ 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.


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