belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1
FragmentManager.FragmentLifecycleCallbacks
public
static
abstract
class
FragmentManager.FragmentLifecycleCallbacks
extends Object
java.lang.Object | |
↳ | android.support.v4.app.FragmentManager.FragmentLifecycleCallbacks |
Callback interface for listening to fragment state changes that happen within a given FragmentManager.
Summary
Public constructors | |
---|---|
FragmentManager.FragmentLifecycleCallbacks()
|
Public methods | |
---|---|
void
|
onFragmentActivityCreated(FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentAttached(FragmentManager fm, Fragment f, Context context)
Called after the fragment has been attached to its host. |
void
|
onFragmentCreated(FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentDestroyed(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentDetached(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentPaused(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentPreAttached(FragmentManager fm, Fragment f, Context context)
Called right before the fragment's |
void
|
onFragmentPreCreated(FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called right before the fragment's |
void
|
onFragmentResumed(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentSaveInstanceState(FragmentManager fm, Fragment f, Bundle outState)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentStarted(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentStopped(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
void
|
onFragmentViewCreated(FragmentManager fm, Fragment f, View v, Bundle savedInstanceState)
Called after the fragment has returned a non-null view from the FragmentManager's
request to |
void
|
onFragmentViewDestroyed(FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
FragmentManager.FragmentLifecycleCallbacks
FragmentManager.FragmentLifecycleCallbacks ()
Public methods
onFragmentActivityCreated
void onFragmentActivityCreated (FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called after the fragment has returned from the FragmentManager's call to
onActivityCreated(Bundle)
. This will only happen once for any given
fragment instance, though the fragment may be attached and detached multiple times.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
savedInstanceState |
Bundle : Saved instance bundle from a previous instance
|
onFragmentAttached
void onFragmentAttached (FragmentManager fm, Fragment f, Context context)
Called after the fragment has been attached to its host. Its host will have had
onAttachFragment
called before this call happens.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
context |
Context : Context that the Fragment was attached to
|
onFragmentCreated
void onFragmentCreated (FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called after the fragment has returned from the FragmentManager's call to
onCreate(Bundle)
. This will only happen once for any given
fragment instance, though the fragment may be attached and detached multiple times.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
savedInstanceState |
Bundle : Saved instance bundle from a previous instance
|
onFragmentDestroyed
void onFragmentDestroyed (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onDestroy()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentDetached
void onFragmentDetached (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onDetach()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentPaused
void onFragmentPaused (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onPause()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentPreAttached
void onFragmentPreAttached (FragmentManager fm, Fragment f, Context context)
Called right before the fragment's onAttach(Context)
method is called.
This is a good time to inject any required dependencies or perform other configuration
for the fragment before any of the fragment's lifecycle methods are invoked.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
context |
Context : Context that the Fragment is being attached to
|
onFragmentPreCreated
void onFragmentPreCreated (FragmentManager fm, Fragment f, Bundle savedInstanceState)
Called right before the fragment's onCreate(Bundle)
method is called.
This is a good time to inject any required dependencies or perform other configuration
for the fragment.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
savedInstanceState |
Bundle : Saved instance bundle from a previous instance
|
onFragmentResumed
void onFragmentResumed (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onResume()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentSaveInstanceState
void onFragmentSaveInstanceState (FragmentManager fm, Fragment f, Bundle outState)
Called after the fragment has returned from the FragmentManager's call to
onSaveInstanceState(Bundle)
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state |
outState |
Bundle : Saved state bundle for the fragment
|
onFragmentStarted
void onFragmentStarted (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onStart()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentStopped
void onFragmentStopped (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onStop()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
onFragmentViewCreated
void onFragmentViewCreated (FragmentManager fm, Fragment f, View v, Bundle savedInstanceState)
Called after the fragment has returned a non-null view from the FragmentManager's
request to onCreateView(LayoutInflater, ViewGroup, Bundle)
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment that created and owns the view |
v |
View : View returned by the fragment |
savedInstanceState |
Bundle : Saved instance bundle from a previous instance
|
onFragmentViewDestroyed
void onFragmentViewDestroyed (FragmentManager fm, Fragment f)
Called after the fragment has returned from the FragmentManager's call to
onDestroyView()
.
Parameters | |
---|---|
fm |
FragmentManager : Host FragmentManager |
f |
Fragment : Fragment changing state
|
Annotations
Interfaces
- ActionBarDrawerToggle.Delegate
- ActionBarDrawerToggle.DelegateProvider
- ActivityCompat.OnRequestPermissionsResultCallback
- ActivityCompat.PermissionCompatDelegate
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- LoaderManager.LoaderCallbacks
- NotificationCompat.Action.Extender
- NotificationCompat.Extender
- SharedElementCallback.OnSharedElementsReadyListener
- TaskStackBuilder.SupportParentable
Classes
- ActionBarDrawerToggle
- ActivityCompat
- ActivityManagerCompat
- ActivityOptionsCompat
- AlarmManagerCompat
- AppLaunchChecker
- AppOpsManagerCompat
- BundleCompat
- DialogFragment
- Fragment
- Fragment.SavedState
- FragmentActivity
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentPagerAdapter
- FragmentStatePagerAdapter
- FragmentTabHost
- FragmentTransaction
- FrameMetricsAggregator
- JobIntentService
- ListFragment
- LoaderManager
- NavUtils
- NotificationCompat
- NotificationCompat.Action
- NotificationCompat.Action.Builder
- NotificationCompat.Action.WearableExtender
- NotificationCompat.BigPictureStyle
- NotificationCompat.BigTextStyle
- NotificationCompat.Builder
- NotificationCompat.CarExtender
- NotificationCompat.CarExtender.UnreadConversation
- NotificationCompat.CarExtender.UnreadConversation.Builder
- NotificationCompat.DecoratedCustomViewStyle
- NotificationCompat.InboxStyle
- NotificationCompat.MessagingStyle
- NotificationCompat.MessagingStyle.Message
- NotificationCompat.Style
- NotificationCompat.WearableExtender
- NotificationCompatExtras
- NotificationCompatSideChannelService
- NotificationManagerCompat
- RemoteInput
- RemoteInput.Builder
- ServiceCompat
- ShareCompat
- ShareCompat.IntentBuilder
- ShareCompat.IntentReader
- SharedElementCallback
- TaskStackBuilder
Exceptions