Bagikan melalui


Activity.FinishActivity(Int32) Method

Definition

Force finish another activity that you had previously started with #startActivityForResult.

[Android.Runtime.Register("finishActivity", "(I)V", "GetFinishActivity_IHandler")]
public virtual void FinishActivity (int requestCode);
[<Android.Runtime.Register("finishActivity", "(I)V", "GetFinishActivity_IHandler")>]
abstract member FinishActivity : int -> unit
override this.FinishActivity : int -> unit

Parameters

requestCode
Int32

The request code of the activity that you had given to startActivityForResult(). If there are multiple activities started with this request code, they will all be finished.

Attributes

Remarks

Force finish another activity that you had previously started with #startActivityForResult.

Java documentation for android.app.Activity.finishActivity(int).

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