Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

LoaderQueryRunner

class LoaderQueryRunner : ContentPager.QueryRunner
kotlin.Any
   ↳ 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

Public constructors
<init>(@NonNull context: Context, @NonNull loaderMgr: LoaderManager)

Public methods
Boolean
isRunning(@NonNull query: Query)

Unit
query(@NonNull query: Query, @NonNull callback: ContentPager.QueryRunner.Callback)

Unit
cancel(@NonNull query: Query)

Public constructors

<init>

LoaderQueryRunner(@NonNull context: Context, @NonNull loaderMgr: LoaderManager)

Public methods

isRunning

fun isRunning(@NonNull query: Query): Boolean

query

fun query(@NonNull query: Query, @NonNull callback: ContentPager.QueryRunner.Callback): Unit

cancel

fun cancel(@NonNull query: Query): Unit