6.3.2.4.13. LocalResourceListLoader

public class LocalResourceListLoader extends AsyncTaskLoader<List<LocalResourceListItem>>

6.3.2.4.13.1. Fields

6.3.2.4.13.1.1. mCanSelectMulti

protected boolean mCanSelectMulti

6.3.2.4.13.1.2. mCanWrite

protected boolean mCanWrite

6.3.2.4.13.1.3. mPath

protected File mPath

6.3.2.4.13.1.4. mResources

protected List<LocalResourceListItem> mResources

6.3.2.4.13.1.5. mTypeMask

protected int mTypeMask

6.3.2.4.13.2. Constructors

6.3.2.4.13.2.1. LocalResourceListLoader

public LocalResourceListLoader(Context context, File path)

6.3.2.4.13.3. Methods

6.3.2.4.13.3.1. deliverResult

public void deliverResult(List<LocalResourceListItem> resources)

Called when there is new data to deliver to the client. The super class will take care of delivering it; the implementation here just adds a little more logic.

6.3.2.4.13.3.2. getCurrentPath

public File getCurrentPath()

6.3.2.4.13.3.3. loadInBackground

public List<LocalResourceListItem> loadInBackground()

This is where the bulk of our work is done. This function is called in a background thread and should generate a new set of data to be published by the loader.

6.3.2.4.13.3.4. onCanceled

public void onCanceled(List<LocalResourceListItem> resources)

Handles a request to cancel a load.

6.3.2.4.13.3.5. onReleaseResources

protected void onReleaseResources(List<LocalResourceListItem> resources)

Helper function to take care of releasing resources associated with an actively loaded data set.

6.3.2.4.13.3.6. onReset

protected void onReset()

Handles a request to completely reset the Loader.

6.3.2.4.13.3.7. onStartLoading

protected void onStartLoading()

Handles a request to start the Loader.

6.3.2.4.13.3.8. onStopLoading

protected void onStopLoading()

Handles a request to stop the Loader.

6.3.2.4.13.3.9. setCanSelectMulti

public void setCanSelectMulti(boolean canSelectMulti)

6.3.2.4.13.3.10. setCanWrite

public void setCanWrite(boolean canWrite)

6.3.2.4.13.3.11. setCurrentPath

public void setCurrentPath(File path)

6.3.2.4.13.3.12. setTypeMask

public void setTypeMask(int typeMask)