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.
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 afterFragment.onAttach(icyllis.modernui.core.Context)
and beforeFragment.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 byFragment.getParentFragmentManager()
.fragment
- Fragment that just received a callback toFragment.onAttach(icyllis.modernui.core.Context)
-