FragmentController
public
class
FragmentController
extends Object
| java.lang.Object | |
| ↳ | android.app.FragmentController |
This class was deprecated
in API level 28.
Use the Support Library
FragmentController
Provides integration points with a FragmentManager for a fragment host.
It is the responsibility of the host to take care of the Fragment's lifecycle.
The methods provided by FragmentController are for that purpose.
Summary
Public methods | |
|---|---|
void
|
attachHost(Fragment parent)
Attaches the host to the FragmentManager for this controller. |
static
final
FragmentController
|
createController(FragmentHostCallback<?> callbacks)
Returns a |
void
|
dispatchActivityCreated()
Moves all Fragments managed by the controller's FragmentManager into the activity created state. |
void
|
dispatchConfigurationChanged(Configuration newConfig)
Lets all Fragments managed by the controller's FragmentManager know a configuration change occurred. |
boolean
|
dispatchContextItemSelected(MenuItem item)
Sends a context item selection event to the Fragments managed by the controller's FragmentManager. |
void
|
dispatchCreate()
Moves all Fragments managed by the controller's FragmentManager into the create state. |
boolean
|
dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater)
Lets all Fragments managed by the controller's FragmentManager know they should create an options menu. |
void
|
dispatchDestroy()
Moves all Fragments managed by the controller's FragmentManager into the destroy state. |
void
|
dispatchDestroyView()
Moves all Fragments managed by the controller's FragmentManager into the destroy view state. |
void
|
dispatchLowMemory()
Lets all Fragments managed by the controller's FragmentManager know the device is in a low memory condition. |
void
|
dispatchMultiWindowModeChanged(boolean isInMultiWindowMode)
This method was deprecated
in API level 26.
use |
void
|
dispatchMultiWindowModeChanged(boolean isInMultiWindowMode, Configuration newConfig)
Lets all Fragments managed by the controller's FragmentManager know the multi-window mode of the activity changed. |
boolean
|
dispatchOptionsItemSelected(MenuItem item)
Sends an option item selection event to the Fragments managed by the controller's FragmentManager. |
void
|
dispatchOptionsMenuClosed(Menu menu)
Lets all Fragments managed by the controller's FragmentManager know the |