Share via


Activity.OnVisibleBehindCanceled Method

Definition

Called when a translucent activity over this activity is becoming opaque or another activity is being launched.

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

Remarks

Called when a translucent activity over this activity is becoming opaque or another activity is being launched. Activities that override this method must call super.onVisibleBehindCanceled() or a SuperNotCalledException will be thrown.

When this method is called the activity has 500 msec to release any resources it may be using while visible in the background. If the activity has not returned from this method in 500 msec the system will destroy the activity and kill the process in order to recover the resources for another process. Otherwise #onStop() will be called following return.

This member is deprecated. This method's functionality is no longer supported as of android.os.Build.VERSION_CODES#O and will be removed in a future release.

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

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