Udostępnij za pośrednictwem


FragmentTransaction.CommitNowAllowingStateLoss Method

Definition

Like #commitNow but allows the commit to be executed after an activity's state is saved.

[Android.Runtime.Register("commitNowAllowingStateLoss", "()V", "GetCommitNowAllowingStateLossHandler", ApiSince=24)]
public abstract void CommitNowAllowingStateLoss ();
[<Android.Runtime.Register("commitNowAllowingStateLoss", "()V", "GetCommitNowAllowingStateLossHandler", ApiSince=24)>]
abstract member CommitNowAllowingStateLoss : unit -> unit
Attributes

Remarks

Like #commitNow but allows the commit to be executed after an activity's state is saved. This is dangerous because the commit can be lost if the activity needs to later be restored from its state, so this should only be used for cases where it is okay for the UI state to change unexpectedly on the user.

Java documentation for android.app.FragmentTransaction.commitNowAllowingStateLoss().

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.

Applies to