{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FragmentManager.BackStackEntry

{% setvar page_path %}androidx/fragment/app/FragmentManager.BackStackEntry.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_java_switcher2.md" %}

interface FragmentManager.BackStackEntry


Representation of an entry on the fragment back stack, as created with FragmentTransaction.addToBackStack(). Entries can later be retrieved with FragmentManager.getBackStackEntryAt().

Note that you should never hold on to a BackStackEntry object; the identifier as returned by getId is the only thing that will be persisted across activity instances.

Summary

Public methods

abstract @Nullable CharSequence

This method is deprecated.

Store breadcrumb short titles separately from back stack entries.

abstract @NonNull int

This method is deprecated.

Store breadcrumb short titles separately from back stack entries.

abstract @Nullable CharSequence

This method is deprecated.

Store breadcrumb titles separately from back stack entries.

abstract @NonNull int

This method is deprecated.

Store breadcrumb titles separately from back stack entries.

abstract @NonNull int

Return the unique identifier for the entry.

abstract @Nullable String

Get the name that was supplied to FragmentTransaction.addToBackStack(String) when creating this entry.

Public methods

getBreadCrumbShortTitle

@Nullable
@NonNull
public abstract CharSequence getBreadCrumbShortTitle()

Return the short bread crumb title for the entry, or null if it does not have one.

getBreadCrumbShortTitleRes

@NonNull
public abstract int getBreadCrumbShortTitleRes()

Return the short bread crumb title resource identifier for the entry, or 0 if it does not have one.

getBreadCrumbTitle

@Nullable
@NonNull
public abstract CharSequence getBreadCrumbTitle()

Return the full bread crumb title for the entry, or null if it does not have one.

getBreadCrumbTitleRes

@NonNull
public abstract int getBreadCrumbTitleRes()

Return the full bread crumb title resource identifier for the entry, or 0 if it does not have one.

getId

@NonNull
public abstract int getId()

Return the unique identifier for the entry. This is the only representation of the entry that will persist across activity instances.

getName

@Nullable
@NonNull
public abstract String getName()

Get the name that was supplied to FragmentTransaction.addToBackStack(String) when creating this entry.