Freigeben über


Fragment.OnActivityResult(Int32, Result, Intent) Method

Definition

Receive the result from a previous call to #startActivityForResult(Intent, int).

[Android.Runtime.Register("onActivityResult", "(IILandroid/content/Intent;)V", "GetOnActivityResult_IILandroid_content_Intent_Handler")]
public virtual void OnActivityResult (int requestCode, Android.App.Result resultCode, Android.Content.Intent? data);
[<Android.Runtime.Register("onActivityResult", "(IILandroid/content/Intent;)V", "GetOnActivityResult_IILandroid_content_Intent_Handler")>]
abstract member OnActivityResult : int * Android.App.Result * Android.Content.Intent -> unit
override this.OnActivityResult : int * Android.App.Result * Android.Content.Intent -> unit

Parameters

requestCode
Int32

The integer request code originally supplied to startActivityForResult(), allowing you to identify who this result came from.

resultCode
Result

The integer result code returned by the child activity through its setResult().

data
Intent

An Intent, which can return result data to the caller (various data can be attached to Intent "extras").

Attributes

Remarks

Receive the result from a previous call to #startActivityForResult(Intent, int). This follows the related Activity API as described there in Activity#onActivityResult(int, int, Intent).

Java documentation for android.app.Fragment.onActivityResult(int, 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