FragmentManager.BackStackEntry


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 functions

CharSequence?

This function is deprecated.

Store breadcrumb short titles separately from back stack entries.

@StringRes Int

This function is deprecated.

Store breadcrumb short titles separately from back stack entries.

CharSequence?

This function is deprecated.

Store breadcrumb titles separately from back stack entries.

@StringRes Int

This function is deprecated.

Store breadcrumb titles separately from back stack entries.

Int

Return the unique identifier for the entry.

String?

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

Public functions

getBreadCrumbShortTitle

Added in 1.1.0
Deprecated in 1.2.0
fun getBreadCrumbShortTitle(): CharSequence?

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

getBreadCrumbShortTitleRes

Added in 1.1.0
Deprecated in 1.2.0
fun getBreadCrumbShortTitleRes(): @StringRes Int

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

getBreadCrumbTitle

Added in 1.1.0
Deprecated in 1.2.0
fun getBreadCrumbTitle(): CharSequence?

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

getBreadCrumbTitleRes

Added in 1.1.0
Deprecated in 1.2.0
fun getBreadCrumbTitleRes(): @StringRes Int

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

getId

Added in 1.1.0
fun getId(): Int

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

getName

Added in 1.1.0
fun getName(): String?

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