Android Guides | Samples

Android.App.FragmentManager.GetFragment Method

Retrieve the current Fragment instance for a reference previously placed with FragmentManager.PutFragment(Bundle,String,String).

Syntax

[Android.Runtime.Register("getFragment", "(Landroid/os/Bundle;Ljava/lang/String;)Landroid/app/Fragment;", "GetGetFragment_Landroid_os_Bundle_Ljava_lang_String_Handler")]
public abstract Fragment GetFragment (Bundle bundle, String key)

Parameters

bundle
The bundle from which to retrieve the fragment reference.
key
The name of the entry in the bundle.

Remarks

Retrieve the current Fragment instance for a reference previously placed with FragmentManager.PutFragment(Bundle,String,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