public class PrintServicesLoader extends Loader<List<PrintServiceInfo>>
Loader.ForceLoadContentObserver, Loader.OnLoadCanceledListener<D>, Loader.OnLoadCompleteListener<D>
Constructor and Description |
---|
PrintServicesLoader(PrintManager printManager,
Context context,
int selectionFlags)
Create a new PrintServicesLoader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onForceLoad()
Subclasses must implement this to take care of requests to
Loader.forceLoad() . |
protected void |
onReset()
Subclasses must implement this to take care of resetting their loader,
as per
Loader.reset() . |
protected void |
onStartLoading()
Subclasses must implement this to take care of loading their data,
as per
Loader.startLoading() . |
protected void |
onStopLoading()
Subclasses must implement this to take care of stopping their loader,
as per
Loader.stopLoading() . |
abandon, cancelLoad, commitContentChanged, dataToString, deliverCancellation, deliverResult, dump, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onCancelLoad, onContentChanged, registerListener, registerOnLoadCanceledListener, reset, rollbackContentChanged, startLoading, stopLoading, takeContentChanged, toString, unregisterListener, unregisterOnLoadCanceledListener
public PrintServicesLoader(PrintManager printManager, Context context, int selectionFlags)
printManager
- The print manager supplying the datacontext
- Context of the using objectselectionFlags
- What type of services to load.protected void onForceLoad()
Loader
Loader.forceLoad()
.
This will always be called from the process's main thread.onForceLoad
in class Loader<List<PrintServiceInfo>>
protected void onStartLoading()
Loader
Loader.startLoading()
. This is not called by clients directly,
but as a result of a call to Loader.startLoading()
.onStartLoading
in class Loader<List<PrintServiceInfo>>
protected void onStopLoading()
Loader
Loader.stopLoading()
. This is not called by clients directly,
but as a result of a call to Loader.stopLoading()
.
This will always be called from the process's main thread.onStopLoading
in class Loader<List<PrintServiceInfo>>
protected void onReset()
Loader
Loader.reset()
. This is not called by clients directly,
but as a result of a call to Loader.reset()
.
This will always be called from the process's main thread.onReset
in class Loader<List<PrintServiceInfo>>