Home | History | Annotate | Download | only in content

Lines Matching defs:Loader

32  * any calls on to a Loader from the main thread of their process (that is,
34 * of Loader (such as {@link AsyncTaskLoader}) will often perform their work
52 public class Loader<D> {
65 * it to the Loader to have the loader re-load its data when the observer
87 * Interface that is implemented to discover when a Loader has finished
90 * to find out when a Loader it is managing has completed so that this can
92 * Loader is not being used in conjunction with LoaderManager.
96 * Called on the thread that created the Loader when the load is complete.
98 * @param loader the loader that completed the load
101 public void onLoadComplete(Loader<D> loader, D data);
105 * Interface that is implemented to discover when a Loader has been canceled
108 * to find out when a Loader it is managing has been canceled so that it
109 * can schedule the next Loader. This interface should only be used if a
110 * Loader is not being used in conjunction with LoaderManager.
114 * Called on the thread that created the Loader when the load is canceled.
116 * @param loader the loader that canceled the load
118 public void onLoadCanceled(Loader<D> loader);
125 * the Loader's Context, don't use the constructor argument directly.
131 public Loader(Context context) {
168 * @return the ID of this loader
248 * Return whether this loader has been abandoned. In this state, the
249 * loader <em>must not</em> report any new data, and <em>must</em> keep
257 * Return whether this load has been reset. That is, either the loader
268 * is being started. When using a Loader with {@link android.app.LoaderManager},
270 * with its management of the Loader.
272 * Starts an asynchronous load of the Loader's data. When the result
276 * The loader will monitor the source of
280 * <p>This updates the Loader's internal state so that
342 * when the loader is started -- that is, {@link #isStarted()} returns true.
360 * is being stopped. When using a Loader with {@link android.app.LoaderManager},
362 * with its management of the Loader.
366 * clients are still free to use the last data the loader reported. They will,
371 * <p>This updates the Loader's internal state so that
383 * Subclasses must implement this to take care of stopping their loader,
393 * {@link android.app.LoaderManager} when restarting a Loader. When using
394 * a Loader with {@link android.app.LoaderManager},
396 * with its management of the Loader.
398 * Tell the Loader that it is being abandoned. This is called prior
410 * the client is no longer interested in any new data from the loader,
411 * so the loader must not report any further updates. However, the
412 * loader <em>must</em> keep its last reported data valid until the final
421 * {@link android.app.LoaderManager} when destroying a Loader. When using
422 * a Loader with {@link android.app.LoaderManager},
424 * with its management of the Loader.
426 * Resets the state of the Loader. The Loader should at this point free
431 * <p>This updates the Loader's internal state so that
447 * Subclasses must implement this to take care of resetting their loader,
456 * Take the current flag indicating whether the loader's content had
483 * canceled before its data was delivered back to the loader.
493 * default implementation checks to see if the loader is currently started;
503 // This loader has been stopped, so we don't want to load
511 * For debugging, converts an instance of the Loader's data class to
532 * Print the Loader's state into the given stream.