FragmentManager.ExecutePendingTransactions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
After a FragmentTransaction
is committed with
FragmentTransaction#commit FragmentTransaction.commit()
, it
is scheduled to be executed asynchronously on the process's main thread.
[Android.Runtime.Register("executePendingTransactions", "()Z", "GetExecutePendingTransactionsHandler")]
public abstract bool ExecutePendingTransactions ();
[<Android.Runtime.Register("executePendingTransactions", "()Z", "GetExecutePendingTransactionsHandler")>]
abstract member ExecutePendingTransactions : unit -> bool
Returns
Returns true if there were any pending transactions to be executed.
- Attributes
Remarks
After a FragmentTransaction
is committed with FragmentTransaction#commit FragmentTransaction.commit()
, it is scheduled to be executed asynchronously on the process's main thread. If you want to immediately executing any such pending operations, you can call this function (only from the main thread) to do so. Note that all callbacks and other related behavior will be done from within this call, so be careful about where this is called from.
This also forces the start of any postponed Transactions where Fragment#postponeEnterTransition()
has been called.
Java documentation for android.app.FragmentManager.executePendingTransactions()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.