public interface

ContentPager.QueryRunner

 androidx.contentpager.content.ContentPager.QueryRunner

Subclasses:

LoaderQueryRunner

Overview

Implementations of this interface provide the mechanism for execution of queries off the UI thread.

Summary

Methods
public voidcancel(Query query)

Attempt to cancel a (presumably) running query.

public booleanisRunning(Query query)

public voidquery(Query query, ContentPager.QueryRunner.Callback callback)

Execute a query.

Methods

public void query(Query query, ContentPager.QueryRunner.Callback callback)

Execute a query.

Parameters:

query: The query that will be run. This value should be handed back to the callback when ready to run in the background.
callback: The callback that should be called to both execute the query (in the background) and to receive the results (in the foreground).

public boolean isRunning(Query query)

Parameters:

query: The query in question.

Returns:

true if the query is already running.

public void cancel(Query query)

Attempt to cancel a (presumably) running query.

Parameters:

query: The query in question.