Compartilhar via


Instrumentation.ActivityResult(Result, Intent) Constructor

Definition

Create a new activity result.

[Android.Runtime.Register(".ctor", "(ILandroid/content/Intent;)V", "")]
public ActivityResult (Android.App.Result resultCode, Android.Content.Intent? resultData);
[<Android.Runtime.Register(".ctor", "(ILandroid/content/Intent;)V", "")>]
new Android.App.Instrumentation.ActivityResult : Android.App.Result * Android.Content.Intent -> Android.App.Instrumentation.ActivityResult

Parameters

resultCode
Result

The result code to propagate back to the originating activity, often RESULT_CANCELED or RESULT_OK

resultData
Intent

The data to propagate back to the originating activity.

Attributes

Remarks

Create a new activity result. See Activity#setResult for more information.

Java documentation for android.app.Instrumentation.ActivityResult.Instrumentation$ActivityResult(int, android.content.Intent).

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