onAttach

open fun onAttach(activity: Activity)

Called when a fragment is first attached to its activity. onCreate will be called after this.

Parameters

activity

the activity