CursorLoader
open class CursorLoader : AsyncTaskLoader<Cursor!>
kotlin.Any | |||
↳ | androidx.loader.content.Loader<D> | ||
↳ | androidx.loader.content.AsyncTaskLoader<android.database.Cursor> | ||
↳ | androidx.loader.content.CursorLoader |
Static library support version of the framework's android.content.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.
Summary
Public constructors | |
---|---|
Creates an empty unspecified CursorLoader. |
|
<init>(@NonNull context: Context, @NonNull uri: Uri, @Nullable projection: Array<String!>?, @Nullable selection: String?, @Nullable selectionArgs: Array<String!>?, @Nullable sortOrder: String?) Creates a fully-specified CursorLoader. |
Public methods | |
---|---|
open Unit | |
open Unit |
deliverResult(cursor: Cursor?) |
open Unit |
dump(prefix: String!, fd: FileDescriptor!, writer: PrintWriter!, args: Array<String!>!) |
open Array<String!>? | |
open String? | |
open Array<String!>? | |
open String? | |
open Uri |
getUri() |
open Cursor? | |
open Unit |
onCanceled(cursor: Cursor?) |
open Unit |
setProjection(@Nullable projection: Array<String!>?) |
open Unit |
setSelection(@Nullable selection: String?) |
open Unit |
setSelectionArgs(@Nullable selectionArgs: Array<String!>?) |
open Unit |
setSortOrder(@Nullable sortOrder: String?) |
open Unit |
Protected methods | |
---|---|
open Unit |
onReset() |
open Unit |
Starts an asynchronous load of the contacts list data. |
open Unit |
Must be called from the UI thread |
Inherited functions | |
---|---|