public interface

FragmentManager.BackStackEntry

 androidx.fragment.app.FragmentManager.BackStackEntry

Overview

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 FragmentManager.BackStackEntry.getId() is the only thing that will be persisted across activity instances.

Summary

Methods
public java.lang.CharSequencegetBreadCrumbShortTitle()

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

public intgetBreadCrumbShortTitleRes()

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

public java.lang.CharSequencegetBreadCrumbTitle()

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

public intgetBreadCrumbTitleRes()

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

public intgetId()

Return the unique identifier for the entry.

public java.lang.StringgetName()

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

Methods

public int getId()

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

public java.lang.String getName()

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

public int getBreadCrumbTitleRes()

Deprecated: Store breadcrumb titles separately from back stack entries. For example, by using an android:label on a fragment in a navigation graph.

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

public int getBreadCrumbShortTitleRes()

Deprecated: Store breadcrumb short titles separately from back stack entries. For example, by using an android:label on a fragment in a navigation graph.

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

public java.lang.CharSequence getBreadCrumbTitle()

Deprecated: Store breadcrumb titles separately from back stack entries. For example, * by using an android:label on a fragment in a navigation graph.

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

public java.lang.CharSequence getBreadCrumbShortTitle()

Deprecated: Store breadcrumb short titles separately from back stack entries. For example, by using an android:label on a fragment in a navigation graph.

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