java.lang.Object | |||
↳ | android.support.v4.content.Loader<android.database.Cursor> | ||
↳ | android.support.v4.content.AsyncTaskLoader<android.database.Cursor> | ||
↳ | android.support.v4.content.CursorLoader |
Static library support version of the framework's CursorLoader
.
Used to write apps that run on platforms prior to Android 3.0. When running
on Android 3.0 or above, this implementation is still used; it does not try
to switch to the framework's implementation. See the framework SDK
documentation for a class overview.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty unspecified CursorLoader.
| |||||||||||
Creates a fully-specified CursorLoader.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sends the result of the load to the registered listener.
| |||||||||||
Print the Loader's state into the given stream.
| |||||||||||
Called if the task was canceled before it was completed.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses must implement this to take care of resetting their loader,
as per
reset() .
| |||||||||||
Starts an asynchronous load of the contacts list data.
| |||||||||||
Must be called from the UI thread
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates an empty unspecified CursorLoader. You must follow this with
calls to setUri(Uri)
, setSelection(String)
, etc
to specify the query to perform.
Creates a fully-specified CursorLoader. See
ContentResolver.query()
for documentation on the meaning of the
parameters. These will be passed as-is to that call.
Sends the result of the load to the registered listener. Should only be called by subclasses. Must be called from the process's main thread.
cursor | the result of the load |
---|
Print the Loader's state into the given stream.
prefix | Text to print at the front of each line. |
---|---|
fd | The raw file descriptor that the dump is being sent to. |
writer | A PrintWriter to which the dump is to be set. |
args | Additional arguments to the dump request. |
Called if the task was canceled before it was completed. Gives the class a chance to properly dispose of the result.