Activity.OnStop Method

Definition

Called when you are no longer visible to the user.

[Android.Runtime.Register("onStop", "()V", "GetOnStopHandler")]
protected virtual void OnStop ();
[<Android.Runtime.Register("onStop", "()V", "GetOnStopHandler")>]
abstract member OnStop : unit -> unit
override this.OnStop : unit -> unit
Attributes

Remarks

Called when you are no longer visible to the user. You will next receive either #onRestart, #onDestroy, or nothing, depending on later user activity. This is a good place to stop refreshing UI, running animations and other visual things.

<em>Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.</em>

Java documentation for android.app.Activity.onStop().

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

See also