onAttach

open fun onAttach(@NonNull context: Context)

Called when the fragment is attached to its host Activity. If the Activity implements OnToolbarMenuChangedListener, it will be automatically set as the listener.

Parameters

context

The context the fragment is being attached to.