Example usage for Java android.app FragmentManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | POP_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. |
void | addOnBackStackChangedListener(OnBackStackChangedListener listener) Add a new listener for changes to the fragment back stack. |
FragmentTransaction | beginTransaction() Start a series of edit operations on the Fragments associated with this FragmentManager. |
boolean | executePendingTransactions() After a FragmentTransaction is committed with FragmentTransaction#commit FragmentTransaction.commit() , it is scheduled to be executed asynchronously on the process's main thread. |
Fragment | findFragmentById(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. |
Fragment | findFragmentByTag(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. |
BackStackEntry | getBackStackEntryAt(int index) Return the BackStackEntry at index index in the back stack; where the item on the bottom of the stack has index 0. |
int | getBackStackEntryCount() Return the number of entries currently in the back stack. |
Fragment | getFragment(Bundle bundle, String key) Retrieve the current Fragment instance for a reference previously placed with #putFragment(Bundle,String,Fragment) . |
void | popBackStack(String name, int flags) Pop the last fragment transition from the manager's fragment back stack. |
void | popBackStack(int id, int flags) Pop all back stack states up to the one with the given identifier. |
void | popBackStack() Pop the top state off the back stack. |
boolean | popBackStackImmediate() Like #popBackStack() , but performs the operation immediately inside of the call. |
boolean | popBackStackImmediate(String name, int flags) Like #popBackStack(String,int) , but performs the operation immediately inside of the call. |
boolean | popBackStackImmediate(int id, int flags) Like #popBackStack(int,int) , but performs the operation immediately inside of the call. |
void | putFragment(Bundle bundle, String key, Fragment fragment) Put a reference to a fragment in a Bundle. |
void | removeOnBackStackChangedListener(OnBackStackChangedListener listener) Remove a listener that was previously added with #addOnBackStackChangedListener(OnBackStackChangedListener) . |