Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.


interface FragmentOnAttachListener

Listener for receiving a callback immediately following Fragment#onAttach(Context). This can be used to perform any additional setup / provide any dependencies that the Fragment may need prior to child fragments being attached or the Fragment going through Fragment#onCreate(Bundle).


Public methods
abstract Unit
onAttachFragment(@NonNull fragmentManager: FragmentManager, @NonNull fragment: Fragment)

Called after the fragment has been attached to its host.

Public methods


@MainThread abstract fun onAttachFragment(
    @NonNull fragmentManager: FragmentManager,
    @NonNull fragment: Fragment
): Unit

Called after the fragment has been attached to its host. This is called immediately after Fragment#onAttach(Context) and before Fragment#onAttach(Context) has been called on any child fragments.

fragmentManager FragmentManager: FragmentManager the fragment is now attached to. This will be the same FragmentManager that is returned by Fragment#getParentFragmentManager().
fragment Fragment: Fragment that just received a callback to Fragment#onAttach(Context)