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>(context: Context, loaderMgr: LoaderManager)

Public methods
Boolean
isRunning(query: Query)

Unit

Unit
cancel(query: Query)

Public constructors

<init>

LoaderQueryRunner(context: Context, loaderMgr: LoaderManager)

Public methods

isRunning

fun isRunning(query: Query): Boolean

query

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

cancel

fun cancel(query: Query): Unit