Android.App.Fragment.SetTargetFragment Method
Optional target for this fragment.

Syntax

[Android.Runtime.Register("setTargetFragment", "(Landroid/app/Fragment;I)V", "GetSetTargetFragment_Landroid_app_Fragment_IHandler")]
public virtual void SetTargetFragment (Fragment fragment, int requestCode)

Parameters

fragment
The fragment that is the target of this one.
requestCode
Optional request code, for convenience if you are going to call back with Fragment.OnActivityResult(int, Android.App.Result, Android.App.Result).

Remarks

Optional target for this fragment. This may be used, for example, if this fragment is being started by another, and when done wants to give a result back to the first. The target set here is retained across instances via FragmentManager.PutFragment(Android.OS.Bundle, System.String, System.String).

[Android Documentation]

Requirements

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