Java android.app FragmentManager fields, constructors, methods, implement or subclass

Example usage for Java android.app FragmentManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app FragmentManager.

The text is from its open source code.

Subclass

android.app.FragmentManager has subclasses.
Click this link to see all its subclasses.

Field

intPOP_BACK_STACK_INCLUSIVE
Flag for #popBackStack(String,int) and #popBackStack(int,int) : If set, and the name or ID of a back stack entry has been supplied, then all matching entries will be consumed until one that doesn't match is found or the bottom of the stack is reached.

Method

voidaddOnBackStackChangedListener(OnBackStackChangedListener listener)
Add a new listener for changes to the fragment back stack.
FragmentTransactionbeginTransaction()
Start a series of edit operations on the Fragments associated with this FragmentManager.
booleanexecutePendingTransactions()
After a FragmentTransaction is committed with FragmentTransaction#commit FragmentTransaction.commit() , it is scheduled to be executed asynchronously on the process's main thread.
FragmentfindFragmentById(int id)
Finds a fragment that was identified by the given id either when inflated from XML or as the container ID when added in a transaction.
FragmentfindFragmentByTag(String tag)
Finds a fragment that was identified by the given tag either when inflated from XML or as supplied when added in a transaction.
BackStackEntrygetBackStackEntryAt(int index)
Return the BackStackEntry at index index in the back stack; where the item on the bottom of the stack has index 0.
intgetBackStackEntryCount()
Return the number of entries currently in the back stack.
FragmentgetFragment(Bundle bundle, String key)
Retrieve the current Fragment instance for a reference previously placed with #putFragment(Bundle,String,Fragment) .
voidpopBackStack(String name, int flags)
Pop the last fragment transition from the manager's fragment back stack.
voidpopBackStack(int id, int flags)
Pop all back stack states up to the one with the given identifier.
voidpopBackStack()
Pop the top state off the back stack.
booleanpopBackStackImmediate()
Like #popBackStack() , but performs the operation immediately inside of the call.
booleanpopBackStackImmediate(String name, int flags)
Like #popBackStack(String,int) , but performs the operation immediately inside of the call.
booleanpopBackStackImmediate(int id, int flags)
Like #popBackStack(int,int) , but performs the operation immediately inside of the call.
voidputFragment(Bundle bundle, String key, Fragment fragment)
Put a reference to a fragment in a Bundle.
voidremoveOnBackStackChangedListener(OnBackStackChangedListener listener)
Remove a listener that was previously added with #addOnBackStackChangedListener(OnBackStackChangedListener) .