Megosztás a következőn keresztül:


Loader.StopLoading Method

Definition

This function will normally be called for you automatically by android.app.LoaderManager when the associated fragment/activity is being stopped.

[Android.Runtime.Register("stopLoading", "()V", "GetStopLoadingHandler")]
public virtual void StopLoading ();
[<Android.Runtime.Register("stopLoading", "()V", "GetStopLoadingHandler")>]
abstract member StopLoading : unit -> unit
override this.StopLoading : unit -> unit
Attributes

Remarks

This function will normally be called for you automatically by android.app.LoaderManager when the associated fragment/activity is being stopped. When using a Loader with android.app.LoaderManager, you <em>must not</em> call this method yourself, or you will conflict with its management of the Loader.

Stops delivery of updates until the next time #startLoading() is called. Implementations should <em>not</em> invalidate their data at this point -- clients are still free to use the last data the loader reported. They will, however, typically stop reporting new data if the data changes; they can still monitor for changes, but must not report them to the client until and if #startLoading() is later called.

This updates the Loader's internal state so that #isStarted() will return the correct value, and then calls the implementation's #onStopLoading().

Must be called from the process's main thread.

Java documentation for android.content.Loader.stopLoading().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to