Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/content/CursorLoader#pubctors) \| [Methods](https://developer.android.com/reference/android/content/CursorLoader#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/content/CursorLoader#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/content/CursorLoader#inhmethods)

# CursorLoader

*** ** * ** ***

` public class CursorLoader `   
` ` ` ` ` extends https://developer.android.com/reference/android/content/AsyncTaskLoader<https://developer.android.com/reference/android/database/Cursor> ` ` `

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [android.content.Loader](https://developer.android.com/reference/android/content/Loader)\<[android.database.Cursor](https://developer.android.com/reference/android/database/Cursor)\> |||
|   | ↳ | [android.content.AsyncTaskLoader](https://developer.android.com/reference/android/content/AsyncTaskLoader)\<[android.database.Cursor](https://developer.android.com/reference/android/database/Cursor)\> ||
|   |   | ↳ | android.content.CursorLoader |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 28.**   

Use the [Support Library](https://developer.android.com/tools/extras/support-library) `https://developer.android.com/reference/androidx/loader/content/CursorLoader.html`

A loader that queries the `https://developer.android.com/reference/android/content/ContentResolver` and returns a `https://developer.android.com/reference/android/database/Cursor`. This class implements the `https://developer.android.com/reference/android/content/Loader` protocol in a standard way for querying cursors, building on `https://developer.android.com/reference/android/content/AsyncTaskLoader` to perform the cursor query on a background thread so that it does not block the application's UI.

A CursorLoader must be built with the full information for the query to perform, either through the `https://developer.android.com/reference/android/content/CursorLoader#CursorLoader(android.content.Context,%20android.net.Uri,%20java.lang.String[],%20java.lang.String,%20java.lang.String[],%20java.lang.String)` or creating an empty instance with `https://developer.android.com/reference/android/content/CursorLoader#CursorLoader(android.content.Context)` and filling in the desired parameters with `https://developer.android.com/reference/android/content/CursorLoader#setUri(android.net.Uri)`, `https://developer.android.com/reference/android/content/CursorLoader#setSelection(java.lang.String)`, `https://developer.android.com/reference/android/content/CursorLoader#setSelectionArgs(java.lang.String[])`, `https://developer.android.com/reference/android/content/CursorLoader#setSortOrder(java.lang.String)`, and `https://developer.android.com/reference/android/content/CursorLoader#setProjection(java.lang.String[])`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/content/CursorLoader#CursorLoader(android.content.Context)(https://developer.android.com/reference/android/content/Context context) ` Creates an empty unspecified CursorLoader. |
| ` https://developer.android.com/reference/android/content/CursorLoader#CursorLoader(android.content.Context,%20android.net.Uri,%20java.lang.String[],%20java.lang.String,%20java.lang.String[],%20java.lang.String)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/net/Uri uri, https://developer.android.com/reference/java/lang/String projection, https://developer.android.com/reference/java/lang/String selection, https://developer.android.com/reference/java/lang/String selectionArgs, https://developer.android.com/reference/java/lang/String sortOrder) ` Creates a fully-specified CursorLoader. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#cancelLoadInBackground()() ` Called on the main thread to abort a load in progress. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#deliverResult(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) ` Sends the result of the load to the registered listener. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#dump(java.lang.String,%20java.io.FileDescriptor,%20java.io.PrintWriter,%20java.lang.String[])(https://developer.android.com/reference/java/lang/String prefix, https://developer.android.com/reference/java/io/FileDescriptor fd, https://developer.android.com/reference/java/io/PrintWriter writer, https://developer.android.com/reference/java/lang/String args) ` Print the Loader's state into the given stream. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/content/CursorLoader#getProjection()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/content/CursorLoader#getSelection()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/content/CursorLoader#getSelectionArgs()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/content/CursorLoader#getSortOrder()() ` |
| ` https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/content/CursorLoader#getUri()() ` |
| ` https://developer.android.com/reference/android/database/Cursor` | ` https://developer.android.com/reference/android/content/CursorLoader#loadInBackground()() ` Called on a worker thread to perform the actual load and to return the result of the load operation. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#onCanceled(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) ` Called if the task was canceled before it was completed. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#setProjection(java.lang.String[])(https://developer.android.com/reference/java/lang/String projection) ` |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#setSelection(java.lang.String)(https://developer.android.com/reference/java/lang/String selection) ` |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#setSelectionArgs(java.lang.String[])(https://developer.android.com/reference/java/lang/String selectionArgs) ` |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#setSortOrder(java.lang.String)(https://developer.android.com/reference/java/lang/String sortOrder) ` |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#setUri(android.net.Uri)(https://developer.android.com/reference/android/net/Uri uri) ` |

| ### Protected methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#onReset()() ` Subclasses must implement this to take care of resetting their loader, as per `https://developer.android.com/reference/android/content/Loader#reset()`. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#onStartLoading()() ` Starts an asynchronous load of the data. |
| ` void` | ` https://developer.android.com/reference/android/content/CursorLoader#onStopLoading()() ` Must be called from the UI thread |

### Inherited methods

From class ` https://developer.android.com/reference/android/content/AsyncTaskLoader ` ` void` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#cancelLoadInBackground()() `

Called on the main thread to abort a load in progress.
` void` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#dump(java.lang.String,%20java.io.FileDescriptor,%20java.io.PrintWriter,%20java.lang.String[])(https://developer.android.com/reference/java/lang/String prefix, https://developer.android.com/reference/java/io/FileDescriptor fd, https://developer.android.com/reference/java/io/PrintWriter writer, https://developer.android.com/reference/java/lang/String args) `

Print the Loader's state into the given stream.
` boolean` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#isLoadInBackgroundCanceled()() `

Returns true if the current invocation of `https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()` is being canceled.
` abstract https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()() `

Called on a worker thread to perform the actual load and to return the result of the load operation.
` boolean` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#onCancelLoad()() `

Subclasses must implement this to take care of requests to `https://developer.android.com/reference/android/content/Loader#cancelLoad()`.
` void` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#onCanceled(D)(https://developer.android.com/reference/android/database/Cursor data) `

Called if the task was canceled before it was completed.
` void` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#onForceLoad()() `

Subclasses must implement this to take care of requests to `https://developer.android.com/reference/android/content/Loader#forceLoad()`.
` https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#onLoadInBackground()() `

Calls `https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()`.
` void` ` https://developer.android.com/reference/android/content/AsyncTaskLoader#setUpdateThrottle(long)(long delayMS) `

Set amount to throttle updates by.
From class ` https://developer.android.com/reference/android/content/Loader ` ` void` ` https://developer.android.com/reference/android/content/Loader#abandon()() `

This function will normally be called for you automatically by `https://developer.android.com/reference/android/app/LoaderManager` when restarting a Loader.
` boolean` ` https://developer.android.com/reference/android/content/Loader#cancelLoad()() `

Attempt to cancel the current load task.
` void` ` https://developer.android.com/reference/android/content/Loader#commitContentChanged()() `

Commit that you have actually fully processed a content change that was returned by `https://developer.android.com/reference/android/content/Loader#takeContentChanged()`.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/content/Loader#dataToString(D)(https://developer.android.com/reference/android/database/Cursor data) `

For debugging, converts an instance of the Loader's data class to a string that can be printed.
` void` ` https://developer.android.com/reference/android/content/Loader#deliverCancellation()() `

Informs the registered `https://developer.android.com/reference/android/content/Loader.OnLoadCanceledListener` that the load has been canceled.
` void` ` https://developer.android.com/reference/android/content/Loader#deliverResult(D)(https://developer.android.com/reference/android/database/Cursor data) `

Sends the result of the load to the registered listener.
` void` ` https://developer.android.com/reference/android/content/Loader#dump(java.lang.String,%20java.io.FileDescriptor,%20java.io.PrintWriter,%20java.lang.String[])(https://developer.android.com/reference/java/lang/String prefix, https://developer.android.com/reference/java/io/FileDescriptor fd, https://developer.android.com/reference/java/io/PrintWriter writer, https://developer.android.com/reference/java/lang/String args) `

Print the Loader's state into the given stream.
` void` ` https://developer.android.com/reference/android/content/Loader#forceLoad()() `

Force an asynchronous load.
` https://developer.android.com/reference/android/content/Context` ` https://developer.android.com/reference/android/content/Loader#getContext()() ` ` int` ` https://developer.android.com/reference/android/content/Loader#getId()() ` ` boolean` ` https://developer.android.com/reference/android/content/Loader#isAbandoned()() `

Return whether this loader has been abandoned.
` boolean` ` https://developer.android.com/reference/android/content/Loader#isReset()() `

Return whether this load has been reset.
` boolean` ` https://developer.android.com/reference/android/content/Loader#isStarted()() `

Return whether this load has been started.
` void` ` https://developer.android.com/reference/android/content/Loader#onAbandon()() `

Subclasses implement this to take care of being abandoned.
` boolean` ` https://developer.android.com/reference/android/content/Loader#onCancelLoad()() `

Subclasses must implement this to take care of requests to `https://developer.android.com/reference/android/content/Loader#cancelLoad()`.
` void` ` https://developer.android.com/reference/android/content/Loader#onContentChanged()() `

Called when `https://developer.android.com/reference/android/content/Loader.ForceLoadContentObserver` detects a change.
` void` ` https://developer.android.com/reference/android/content/Loader#onForceLoad()() `

Subclasses must implement this to take care of requests to `https://developer.android.com/reference/android/content/Loader#forceLoad()`.
` void` ` https://developer.android.com/reference/android/content/Loader#onReset()() `

Subclasses must implement this to take care of resetting their loader, as per `https://developer.android.com/reference/android/content/Loader#reset()`.
` void` ` https://developer.android.com/reference/android/content/Loader#onStartLoading()() `

Subclasses must implement this to take care of loading their data, as per `https://developer.android.com/reference/android/content/Loader#startLoading()`.
` void` ` https://developer.android.com/reference/android/content/Loader#onStopLoading()() `

Subclasses must implement this to take care of stopping their loader, as per `https://developer.android.com/reference/android/content/Loader#stopLoading()`.
` void` ` https://developer.android.com/reference/android/content/Loader#registerListener(int,%20android.content.Loader.OnLoadCompleteListener<D>)(int id, https://developer.android.com/reference/android/content/Loader.OnLoadCompleteListener<https://developer.android.com/reference/android/database/Cursor> listener) `

Registers a class that will receive callbacks when a load is complete.
` void` ` https://developer.android.com/reference/android/content/Loader#registerOnLoadCanceledListener(android.content.Loader.OnLoadCanceledListener<D>)(https://developer.android.com/reference/android/content/Loader.OnLoadCanceledListener<https://developer.android.com/reference/android/database/Cursor> listener) `

Registers a listener that will receive callbacks when a load is canceled.
` void` ` https://developer.android.com/reference/android/content/Loader#reset()() `

This function will normally be called for you automatically by `https://developer.android.com/reference/android/app/LoaderManager` when destroying a Loader.
` void` ` https://developer.android.com/reference/android/content/Loader#rollbackContentChanged()() `

Report that you have abandoned the processing of a content change that was returned by `https://developer.android.com/reference/android/content/Loader#takeContentChanged()` and would like to rollback to the state where there is again a pending content change.
` final void` ` https://developer.android.com/reference/android/content/Loader#startLoading()() `

This function will normally be called for you automatically by `https://developer.android.com/reference/android/app/LoaderManager` when the associated fragment/activity is being started.
` void` ` https://developer.android.com/reference/android/content/Loader#stopLoading()() `

This function will normally be called for you automatically by `https://developer.android.com/reference/android/app/LoaderManager` when the associated fragment/activity is being stopped.
` boolean` ` https://developer.android.com/reference/android/content/Loader#takeContentChanged()() `

Take the current flag indicating whether the loader's content had changed while it was stopped.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/content/Loader#toString()() `

Returns a string representation of the object.
` void` ` https://developer.android.com/reference/android/content/Loader#unregisterListener(android.content.Loader.OnLoadCompleteListener<D>)(https://developer.android.com/reference/android/content/Loader.OnLoadCompleteListener<https://developer.android.com/reference/android/database/Cursor> listener) `

Remove a listener that was previously added with `https://developer.android.com/reference/android/content/Loader#registerListener(int,%20android.content.Loader.OnLoadCompleteListener<D>)`.
` void` ` https://developer.android.com/reference/android/content/Loader#unregisterOnLoadCanceledListener(android.content.Loader.OnLoadCanceledListener<D>)(https://developer.android.com/reference/android/content/Loader.OnLoadCanceledListener<https://developer.android.com/reference/android/database/Cursor> listener) `

Unregisters a listener that was previously added with `https://developer.android.com/reference/android/content/Loader#registerOnLoadCanceledListener(android.content.Loader.OnLoadCanceledListener<D>)`.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### CursorLoader

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CursorLoader (Context context)
```

Creates an empty unspecified CursorLoader. You must follow this with calls to `https://developer.android.com/reference/android/content/CursorLoader#setUri(android.net.Uri)`, `https://developer.android.com/reference/android/content/CursorLoader#setSelection(java.lang.String)`, etc to specify the query to perform.

<br />

| Parameters ||
|---|---|
| `context` | `Context` <br /> |

### CursorLoader

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CursorLoader (Context context, 
                Uri uri, 
                String[] projection, 
                String selection, 
                String[] selectionArgs, 
                String sortOrder)
```

Creates a fully-specified CursorLoader. See `https://developer.android.com/reference/android/content/ContentResolver#query(android.net.Uri,%20java.lang.String[],%20java.lang.String,%20java.lang.String[],%20java.lang.String)` for documentation on the meaning of the parameters. These will be passed as-is to that call.

<br />

| Parameters ||
|---|---|
| `context` | `Context` <br /> |
| `uri` | `Uri` <br /> |
| `projection` | `String` <br /> |
| `selection` | `String` <br /> |
| `selectionArgs` | `String` <br /> |
| `sortOrder` | `String` <br /> |

## Public methods

### cancelLoadInBackground

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void cancelLoadInBackground ()
```

Called on the main thread to abort a load in progress. Override this method to abort the current invocation of `https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()` that is running in the background on a worker thread. This method should do nothing if `https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()` has not started running or if it has already finished.

<br />

### deliverResult

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void deliverResult (Cursor cursor)
```

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.

<br />

| Parameters ||
|---|---|
| `cursor` | `Cursor`: the result of the load <br /> |

### dump

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void dump (String prefix, 
                FileDescriptor fd, 
                PrintWriter writer, 
                String[] args)
```

Print the Loader's state into the given stream.

<br />

| Parameters ||
|---|---|
| `prefix` | `String`: Text to print at the front of each line. <br /> |
| `fd` | `FileDescriptor`: The raw file descriptor that the dump is being sent to. <br /> |
| `writer` | `PrintWriter`: A PrintWriter to which the dump is to be set. <br /> |
| `args` | `String`: Additional arguments to the dump request. <br /> |

### getProjection

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String[] getProjection ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSelection

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSelection ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSelectionArgs

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String[] getSelectionArgs ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSortOrder

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSortOrder ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getUri

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Uri getUri ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | <br /> |

### loadInBackground

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Cursor loadInBackground ()
```

Called on a worker thread to perform the actual load and to return the result of the load operation. Implementations should not deliver the result directly, but should return them from this method, which will eventually end up calling `https://developer.android.com/reference/android/content/Loader#deliverResult(D)` on the UI thread. If implementations need to process the results on the UI thread they may override `https://developer.android.com/reference/android/content/Loader#deliverResult(D)` and do so there. To support cancellation, this method should periodically check the value of `https://developer.android.com/reference/android/content/AsyncTaskLoader#isLoadInBackgroundCanceled()` and terminate when it returns true. Subclasses may also override `https://developer.android.com/reference/android/content/AsyncTaskLoader#cancelLoadInBackground()` to interrupt the load directly instead of polling `https://developer.android.com/reference/android/content/AsyncTaskLoader#isLoadInBackgroundCanceled()`. When the load is canceled, this method may either return normally or throw `https://developer.android.com/reference/android/os/OperationCanceledException`. In either case, the `https://developer.android.com/reference/android/content/Loader` will call `https://developer.android.com/reference/android/content/AsyncTaskLoader#onCanceled(D)` to perform post-cancellation cleanup and to dispose of the result object, if any.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/database/Cursor` | The result of the load operation. <br /> |

### onCanceled

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onCanceled (Cursor cursor)
```

Called if the task was canceled before it was completed. Gives the class a chance to clean up post-cancellation and to properly dispose of the result.

<br />

| Parameters ||
|---|---|
| `cursor` | `Cursor`: The value that was returned by `https://developer.android.com/reference/android/content/CursorLoader#loadInBackground()`, or null if the task threw `https://developer.android.com/reference/android/os/OperationCanceledException`. <br /> |

### setProjection

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setProjection (String[] projection)
```

<br />

<br />

| Parameters ||
|---|---|
| `projection` | `String` <br /> |

### setSelection

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSelection (String selection)
```

<br />

<br />

| Parameters ||
|---|---|
| `selection` | `String` <br /> |

### setSelectionArgs

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSelectionArgs (String[] selectionArgs)
```

<br />

<br />

| Parameters ||
|---|---|
| `selectionArgs` | `String` <br /> |

### setSortOrder

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSortOrder (String sortOrder)
```

<br />

<br />

| Parameters ||
|---|---|
| `sortOrder` | `String` <br /> |

### setUri

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setUri (Uri uri)
```

<br />

<br />

| Parameters ||
|---|---|
| `uri` | `Uri` <br /> |

## Protected methods

### onReset

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onReset ()
```

Subclasses must implement this to take care of resetting their loader, as per `https://developer.android.com/reference/android/content/Loader#reset()`. This is not called by clients directly, but as a result of a call to `https://developer.android.com/reference/android/content/Loader#reset()`. This will always be called from the process's main thread.

<br />

### onStartLoading

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onStartLoading ()
```

Starts an asynchronous load of the data. When the result is ready the callbacks will be called on the UI thread. If a previous load has been completed and is still valid the result may be passed to the callbacks immediately. Must be called from the UI thread

<br />

### onStopLoading

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected void onStopLoading ()
```

Must be called from the UI thread

<br />