onCreate

open override fun onCreate(savedInstanceState: Bundle?)

Called to do initial creation of a fragment. This is called after SupportFragment.onAttach and before SupportFragment.onCreateView.

N.B. 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, use onActivityCreated

Any restored child fragments will be created before the base SupportFragment.onCreate method returns.

Parameters

savedInstanceState

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