Stay organized with collections
Save and categorize content based on your preferences.
FragmentManager.BackStackEntry
public
static
interface
FragmentManager.BackStackEntry
android.app.FragmentManager.BackStackEntry
|
This interface was deprecated
in API level 28.
Use the
Support Library 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
getBreadCrumbShortTitle
public abstract CharSequence getBreadCrumbShortTitle ()
Return the short bread crumb title for the entry, or null if it
does not have one.
getBreadCrumbShortTitleRes
public abstract int getBreadCrumbShortTitleRes ()
Return the short bread crumb title resource identifier for the entry,
or 0 if it does not have one.
getBreadCrumbTitle
public abstract CharSequence getBreadCrumbTitle ()
Return the full bread crumb title for the entry, or null if it
does not have one.
getBreadCrumbTitleRes
public abstract int getBreadCrumbTitleRes ()
Return the full bread crumb title resource identifier for the entry,
or 0 if it does not have one.
getId
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# FragmentManager.BackStackEntry\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n28](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nFragmentManager.BackStackEntry\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/FragmentManager.BackStackEntry \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nFragmentManager.BackStackEntry\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------|\n| android.app.FragmentManager.BackStackEntry |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 28.** \n\nUse the [Support Library](/tools/extras/support-library) [FragmentManager.BackStackEntry](https://developer.android.com/reference/androidx/fragment/app/FragmentManager.BackStackEntry.html)\n\nRepresentation of an entry on the fragment back stack, as created\nwith [FragmentTransaction.addToBackStack()](/reference/android/app/FragmentTransaction#addToBackStack(java.lang.String)). Entries can later be\nretrieved with [FragmentManager.getBackStackEntryAt()](/reference/android/app/FragmentManager#getBackStackEntryAt(int)).\n\nNote that you should never hold on to a BackStackEntry object;\nthe identifier as returned by [getId()](/reference/android/app/FragmentManager.BackStackEntry#getId()) is the only thing that\nwill be persisted across activity instances.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[CharSequence](/reference/java/lang/CharSequence) | ` `[getBreadCrumbShortTitle](/reference/android/app/FragmentManager.BackStackEntry#getBreadCrumbShortTitle())`() ` Return the short bread crumb title for the entry, or null if it does not have one. |\n| ` abstract int` | ` `[getBreadCrumbShortTitleRes](/reference/android/app/FragmentManager.BackStackEntry#getBreadCrumbShortTitleRes())`() ` Return the short bread crumb title resource identifier for the entry, or 0 if it does not have one. |\n| ` abstract `[CharSequence](/reference/java/lang/CharSequence) | ` `[getBreadCrumbTitle](/reference/android/app/FragmentManager.BackStackEntry#getBreadCrumbTitle())`() ` Return the full bread crumb title for the entry, or null if it does not have one. |\n| ` abstract int` | ` `[getBreadCrumbTitleRes](/reference/android/app/FragmentManager.BackStackEntry#getBreadCrumbTitleRes())`() ` Return the full bread crumb title resource identifier for the entry, or 0 if it does not have one. |\n| ` abstract int` | ` `[getId](/reference/android/app/FragmentManager.BackStackEntry#getId())`() ` Return the unique identifier for the entry. |\n| ` abstract `[String](/reference/java/lang/String) | ` `[getName](/reference/android/app/FragmentManager.BackStackEntry#getName())`() ` Get the name that was supplied to [FragmentTransaction.addToBackStack(String)](/reference/android/app/FragmentTransaction#addToBackStack(java.lang.String)) when creating this entry. |\n\nPublic methods\n--------------\n\n### getBreadCrumbShortTitle\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract CharSequence getBreadCrumbShortTitle ()\n```\n\nReturn the short bread crumb title for the entry, or null if it\ndoes not have one.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------|--------|\n| [CharSequence](/reference/java/lang/CharSequence) | \u003cbr /\u003e |\n\n### getBreadCrumbShortTitleRes\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract int getBreadCrumbShortTitleRes ()\n```\n\nReturn the short bread crumb title resource identifier for the entry,\nor 0 if it does not have one.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getBreadCrumbTitle\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract CharSequence getBreadCrumbTitle ()\n```\n\nReturn the full bread crumb title for the entry, or null if it\ndoes not have one.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------|--------|\n| [CharSequence](/reference/java/lang/CharSequence) | \u003cbr /\u003e |\n\n### getBreadCrumbTitleRes\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract int getBreadCrumbTitleRes ()\n```\n\nReturn the full bread crumb title resource identifier for the entry,\nor 0 if it does not have one.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getId\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract int getId ()\n```\n\nReturn the unique identifier for the entry. This is the only\nrepresentation of the entry that will persist across activity\ninstances.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getName\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n28](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String getName ()\n```\n\nGet the name that was supplied to\n[FragmentTransaction.addToBackStack(String)](/reference/android/app/FragmentTransaction#addToBackStack(java.lang.String)) when creating this entry.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|--------|\n| [String](/reference/java/lang/String) | \u003cbr /\u003e |"]]