Android.App.Activity.SetResult Method
Call this to set the result that your activity will return to its caller.

Syntax

[Android.Runtime.Register("setResult", "(ILandroid/content/Intent;)V", "")]
public void SetResult ([Android.Runtime.GeneratedEnum] Result resultCode, Android.Content.Intent data)

See Also

Activity.SetResult(Result)

Parameters

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

Remarks

Call this to set the result that your activity will return to its caller.

As of NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#GINGERBREAD, the Intent you supply here can have Android.Content.Intent.FLAG_GRANT_READ_URI_PERMISSION and/or Android.Content.Intent.FLAG_GRANT_WRITE_URI_PERMISSION set. This will grant the Activity receiving the result access to the specific URIs in the Intent. Access will remain until the Activity has finished (it will remain across the hosting process being killed and other temporary destruction) and will be added to any existing set of URI permissions it already holds.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1