The Android Developer Challenge is back! Submit your idea before December 2.

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

Unit
cancel(@NonNull query: Query)

Boolean
isRunning(@NonNull query: Query)

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

Public constructors

<init>

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

Public methods

cancel

fun cancel(@NonNull query: Query): Unit

isRunning

fun isRunning(@NonNull query: Query): Boolean

query

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