onCreate

fun onCreate(bundle: Bundle?)

Callback method which should be called when the parent lifecycle aware component is being created.

Parameters

bundle

If the view is being re-created from a previous saved state, this is the state. The caller can just pass the Bundle instance provided usually by the Android Framework during Activity.onCreate or Fragment.onCreate.