onAttach

open fun onAttach(@NonNull context: @NonNull Context)

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


open fun onAttach(@NonNull activity: @NonNull Activity)

Deprecated

See onAttach.

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