다음을 통해 공유


Instrumentation.Finish(Result, Bundle) Method

Definition

Terminate instrumentation of the application.

[Android.Runtime.Register("finish", "(ILandroid/os/Bundle;)V", "GetFinish_ILandroid_os_Bundle_Handler")]
public virtual void Finish (Android.App.Result resultCode, Android.OS.Bundle? results);
[<Android.Runtime.Register("finish", "(ILandroid/os/Bundle;)V", "GetFinish_ILandroid_os_Bundle_Handler")>]
abstract member Finish : Android.App.Result * Android.OS.Bundle -> unit
override this.Finish : Android.App.Result * Android.OS.Bundle -> unit

Parameters

resultCode
Result

Overall success/failure of instrumentation.

results
Bundle

Any results to send back to the code that started the instrumentation.

Attributes

Remarks

Terminate instrumentation of the application. This will cause the application process to exit, removing this instrumentation from the next time the application is started. If multiple processes are currently running for this instrumentation, all of those processes will be killed.

Java documentation for android.app.Instrumentation.finish(int, android.os.Bundle).

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