FragmentManager.GetFragment FragmentManager.GetFragment Method

Definition

Overloads

GetFragment(Bundle, String) GetFragment(Bundle, String)

M:Android.App.FragmentManager.PutFragment(Android.OS.Bundle,System.String,System.String)

GetFragment<T>(Bundle, String) GetFragment<T>(Bundle, String)

GetFragment(Bundle, String) GetFragment(Bundle, String)

M:Android.App.FragmentManager.PutFragment(Android.OS.Bundle,System.String,System.String)

[Android.Runtime.Register("getFragment", "(Landroid/os/Bundle;Ljava/lang/String;)Landroid/app/Fragment;", "GetGetFragment_Landroid_os_Bundle_Ljava_lang_String_Handler")]
public abstract Android.App.Fragment GetFragment (Android.OS.Bundle bundle, string key);
abstract member GetFragment : Android.OS.Bundle * string -> Android.App.Fragment

Parameters

bundle
Bundle Bundle

The bundle from which to retrieve the fragment reference.

key
String String

The name of the entry in the bundle.

Returns

Remarks

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.

GetFragment<T>(Bundle, String) GetFragment<T>(Bundle, String)

public T GetFragment<T> (Android.OS.Bundle bundle, string key) where T : Android.App.Fragment;
member this.GetFragment : Android.OS.Bundle * string -> 'T (requires 'T :> Android.App.Fragment)

Type Parameters

T

Parameters

bundle
Bundle Bundle

Returns

T T

Remarks

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