ReactiveAppCompatActivity.OnActivityResult(int, Result, Intent?) method¶
Defined in
Type: ReactiveAppCompatActivity
Namespace: ReactiveUI.AndroidX
Assembly: ReactiveUI.AndroidX.dll
Applies to
net10.0-android36.0
protected override void OnActivityResult(int requestCode, Result resultCode, Intent? data)
Inherited documentation
These docs were inherited from Activity. The member doesn't override them on this type.
Summary: Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it.
Parameters
| Name | Type | Description |
|---|---|---|
requestCode | int | 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"). |
Remarks
Called when an activity you launched exits, giving you the requestCode
you started it with, the resultCode it returned, and any additional
data from it. The resultCode will be
#RESULT_CANCELED if the activity explicitly returned that,
didn't return any result, or crashed during its operation.
An activity can never receive a result in the resumed state. You can count on
#onResume being called after this method, though not necessarily immediately after.
If the activity was resumed, it will be paused and the result will be delivered, followed
by #onResume. If the activity wasn't in the resumed state, then the result will
be delivered, with #onResume called sometime later when the activity becomes active
again.
This method is never invoked if your activity sets
android.R.styleable#AndroidManifestActivity_noHistory noHistory to
true.
Java documentation for
android.app.Activity.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.