Package icyllis.modernui.fragment

# Interface FragmentOnAttachListener

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FragmentOnAttachListener
Listener for receiving a callback immediately following `Fragment.onAttach(icyllis.modernui.core.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(DataSet)`.

See Also:
  - `FragmentManager.addFragmentOnAttachListener(FragmentOnAttachListener)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onAttachFragment(FragmentManager fragmentManager, Fragment fragment)`
  Called after the fragment has been attached to its host.

- ## Method Details

  - ### onAttachFragment

    @UiThread void onAttachFragment(@Nonnull FragmentManager fragmentManager, @Nonnull Fragment fragment)
    Called after the fragment has been attached to its host. This is called immediately after `Fragment.onAttach(icyllis.modernui.core.Context)` and before `Fragment.onAttach(icyllis.modernui.core.Context)` has been called on any child fragments.
    Parameters:
      `fragmentManager` - FragmentManager the fragment is now attached to. This will be the same FragmentManager that is returned by `Fragment.getParentFragmentManager()`.
      `fragment` - Fragment that just received a callback to `Fragment.onAttach(icyllis.modernui.core.Context)`