Share via


Activity.OnActivityReenter(Int32, Intent) Method

Definition

Called when an activity you launched with an activity transition exposes this Activity through a returning activity transition, giving you the resultCode and any additional data from it.

[Android.Runtime.Register("onActivityReenter", "(ILandroid/content/Intent;)V", "GetOnActivityReenter_ILandroid_content_Intent_Handler")]
public virtual void OnActivityReenter (int resultCode, Android.Content.Intent? data);
[<Android.Runtime.Register("onActivityReenter", "(ILandroid/content/Intent;)V", "GetOnActivityReenter_ILandroid_content_Intent_Handler")>]
abstract member OnActivityReenter : int * Android.Content.Intent -> unit
override this.OnActivityReenter : int * Android.Content.Intent -> unit

Parameters

resultCode
Int32

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

Called when an activity you launched with an activity transition exposes this Activity through a returning activity transition, giving you the resultCode and any additional data from it. This method will only be called if the activity set a result code other than #RESULT_CANCELED and it supports activity transitions with Window#FEATURE_ACTIVITY_TRANSITIONS.

The purpose of this function is to let the called Activity send a hint about its state so that this underlying Activity can prepare to be exposed. A call to this method does not guarantee that the called Activity has or will be exiting soon. It only indicates that it will expose this Activity's Window and it has some data to pass to prepare it.

Java documentation for android.app.Activity.onActivityReenter(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