FragmentTransaction.CommitAllowingStateLoss メソッド

定義

と同様 #commit ですが、アクティビティの状態が保存された後にコミットを実行できます。

[Android.Runtime.Register("commitAllowingStateLoss", "()I", "GetCommitAllowingStateLossHandler")]
public abstract int CommitAllowingStateLoss ();
[<Android.Runtime.Register("commitAllowingStateLoss", "()I", "GetCommitAllowingStateLossHandler")>]
abstract member CommitAllowingStateLoss : unit -> int

戻り値

属性

注釈

と同様 #commit ですが、アクティビティの状態が保存された後にコミットを実行できます。 これは、アクティビティを後で状態から復元する必要がある場合にコミットが失われる可能性があるため、これはユーザーの UI 状態が予期せず変更しても問題ない場合にのみ使用する必要があるため、危険です。

android.app.FragmentTransaction.commitAllowingStateLoss()Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象