Join us for ⁠#Android11: The Beta Launch Show on June 3!
Added in API level 11
Deprecated in API level 28

BackStackEntry

interface BackStackEntry
android.app.FragmentManager.BackStackEntry

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

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 CharSequence!

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

abstract Int

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

abstract CharSequence!

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

abstract Int

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

abstract Int

Return the unique identifier for the entry.

abstract String!

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

Public methods

getBreadCrumbShortTitle

Added in API level 11
Deprecated in API level 28
abstract fun getBreadCrumbShortTitle(): CharSequence!

Deprecated.

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

getBreadCrumbShortTitleRes

Added in API level 11
Deprecated in API level 28
abstract fun getBreadCrumbShortTitleRes(): Int

Deprecated.

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

getBreadCrumbTitle

Added in API level 11
Deprecated in API level 28
abstract fun getBreadCrumbTitle(): CharSequence!

Deprecated.

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

getBreadCrumbTitleRes

Added in API level 11
Deprecated in API level 28
abstract fun getBreadCrumbTitleRes(): Int

Deprecated.

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

getId

Added in API level 11
Deprecated in API level 28
abstract fun getId(): Int

Deprecated.

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

getName

Added in API level 14
Deprecated in API level 28
abstract fun getName(): String!

Deprecated.

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