Android.App.Fragment.Instantiate Method
Create a new instance of a Fragment with the given class name.

Syntax

[Android.Runtime.Register("instantiate", "(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/app/Fragment;", "")]
public static Fragment Instantiate (Android.Content.Context context, string fname, Android.OS.Bundle args)

Parameters

context
The calling context being used to instantiate the fragment. This is currently just used to get its ClassLoader.
fname
The class name of the fragment to instantiate.
args
Bundle of arguments to supply to the fragment, which it can retrieve with Fragment.Arguments. May be null.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.InstantiationExceptionIf there is a failure in instantiating the given fragment class. This is a runtime exception; it is not normally expected to happen.

Remarks

Create a new instance of a Fragment with the given class name. This is the same as calling its empty constructor.

[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