belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1
FragmentController
public
class
FragmentController
extends Object
java.lang.Object | |
↳ | android.support.v4.app.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
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)
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 their options menu has closed. |
void
|
dispatchPause()
Moves all Fragments managed by the controller's FragmentManager into the pause state. |
void
|
dispatchPictureInPictureModeChanged(boolean isInPictureInPictureMode)
Lets all Fragments managed by the controller's FragmentManager know the picture-in-picture mode of the activity changed. |
boolean
|
dispatchPrepareOptionsMenu(Menu menu)
Lets all Fragments managed by the controller's FragmentManager know they should prepare their options menu for display. |
void
|
dispatchReallyStop()
|
void
|
dispatchResume()
Moves all Fragments managed by the controller's FragmentManager into the resume state. |
void
|
dispatchStart()
Moves all Fragments managed by the controller's FragmentManager into the start state. |
void
|
dispatchStop()
Moves all Fragments managed by the controller's FragmentManager into the stop state. |
void
|
doLoaderDestroy()
This method was deprecated in API level 27.1.0. Loaders are managed separately from FragmentController |
void
|
doLoaderRetain()
This method was deprecated in API level 27.1.0. Loader |