Android.App.Fragment.OnCreate Method
Called to do initial creation of a fragment.

Syntax

[Android.Runtime.Register("onCreate", "(Landroid/os/Bundle;)V", "GetOnCreate_Landroid_os_Bundle_Handler")]
public virtual void OnCreate (Android.OS.Bundle savedInstanceState)

Parameters

savedInstanceState
If the fragment is being re-created from a previous saved state, this is the state.

Remarks

Called to do initial creation of a fragment. This is called after Fragment.OnAttach(Activity) and before Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup).

Note that this can be called while the fragment's activity is still in the process of being created. As such, you can not rely on things like the activity's content view hierarchy being initialized at this point. If you want to do work once the activity itself is created, see Fragment.OnActivityCreated(Android.OS.Bundle).

[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