onAttach

open fun onAttach(@NonNull context: Context)

Called when the fragment is attached to an activity. Initializes weak references to document listeners and updates the activity context.

Parameters

context

The context of the activity this fragment is attached to.