Home | History | Annotate | Download | only in content

Lines Matching defs:Loader

28  * Static library support version of the framework's {@link android.content.Loader}.
34 public class Loader<D> {
47 * it to the Loader to have the loader re-load its data when the observer
69 * Interface that is implemented to discover when a Loader has finished
72 * to find out when a Loader it is managing has completed so that this can
74 * Loader is not being used in conjunction with LoaderManager.
78 * Called on the thread that created the Loader when the load is complete.
80 * @param loader the loader that completed the load
83 public void onLoadComplete(Loader<D> loader, D data);
87 * Interface that is implemented to discover when a Loader has been canceled
90 * to find out when a Loader it is managing has been canceled so that it
91 * can schedule the next Loader. This interface should only be used if a
92 * Loader is not being used in conjunction with LoaderManager.
96 * Called on the thread that created the Loader when the load is canceled.
98 * @param loader the loader that canceled the load
100 public void onLoadCanceled(Loader<D> loader);
107 * the Loader's Context, don't use the constructor argument directly.
113 public Loader(Context context) {
150 * @return the ID of this loader
230 * Return whether this loader has been abandoned. In this state, the
231 * loader <em>must not</em> report any new data, and <em>must</em> keep
239 * Return whether this load has been reset. That is, either the loader
250 * is being started. When using a Loader with {@link android.support.v4.app.LoaderManager},
252 * with its management of the Loader.
254 * Starts an asynchronous load of the Loader's data. When the result
258 * The loader will monitor the source of
262 * <p>This updates the Loader's internal state so that
324 * when the loader is started -- that is, {@link #isStarted()} returns true.
342 * is being stopped. When using a Loader with {@link android.support.v4.app.LoaderManager},
344 * with its management of the Loader.
348 * clients are still free to use the last data the loader reported. They will,
353 * <p>This updates the Loader's internal state so that
365 * Subclasses must implement this to take care of stopping their loader,
375 * {@link android.support.v4.app.LoaderManager} when restarting a Loader. When using
376 * a Loader with {@link android.support.v4.app.LoaderManager},
378 * with its management of the Loader.
380 * Tell the Loader that it is being abandoned. This is called prior
392 * the client is no longer interested in any new data from the loader,
393 * so the loader must not report any further updates. However, the
394 * loader <em>must</em> keep its last reported data valid until the final
403 * {@link android.support.v4.app.LoaderManager} when destroying a Loader. When using
404 * a Loader with {@link android.support.v4.app.LoaderManager},
406 * with its management of the Loader.
408 * Resets the state of the Loader. The Loader should at this point free
413 * <p>This updates the Loader's internal state so that
429 * Subclasses must implement this to take care of resetting their loader,
438 * Take the current flag indicating whether the loader's content had
465 * canceled before its data was delivered back to the loader.
475 * default implementation checks to see if the loader is currently started;
485 // This loader has been stopped, so we don't want to load
493 * For debugging, converts an instance of the Loader's data class to
514 * Print the Loader's state into the given stream.