共用方式為


FragmentManager.FragmentLifecycleCallbacks.OnFragmentSaveInstanceState 方法

定義

在片段從 FragmentManager 對 的呼叫傳回之後呼叫 Fragment#onSaveInstanceState(Bundle)

[Android.Runtime.Register("onFragmentSaveInstanceState", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/os/Bundle;)V", "GetOnFragmentSaveInstanceState_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_os_Bundle_Handler", ApiSince=26)]
public virtual void OnFragmentSaveInstanceState (Android.App.FragmentManager fm, Android.App.Fragment f, Android.OS.Bundle outState);
[<Android.Runtime.Register("onFragmentSaveInstanceState", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/os/Bundle;)V", "GetOnFragmentSaveInstanceState_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_os_Bundle_Handler", ApiSince=26)>]
abstract member OnFragmentSaveInstanceState : Android.App.FragmentManager * Android.App.Fragment * Android.OS.Bundle -> unit
override this.OnFragmentSaveInstanceState : Android.App.FragmentManager * Android.App.Fragment * Android.OS.Bundle -> unit

參數

fm
FragmentManager

Host FragmentManager

f
Fragment

片段變更狀態

outState
Bundle

片段的已儲存狀態組合

屬性

備註

在片段從 FragmentManager 對 的呼叫傳回之後呼叫 Fragment#onSaveInstanceState(Bundle)

android.app.FragmentManager.FragmentLifecycleCallbacks.onFragmentSaveInstanceState(android.app.FragmentManager, android.app.Fragment, android.os.Bundle)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於