Activity.OnStop Method

Definition

Called when you are no longer visible to the user.

C#
[Android.Runtime.Register("onStop", "()V", "GetOnStopHandler")]
protected virtual void OnStop ();
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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

See also