FragmentManager.RegisterFragmentLifecycleCallbacks 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.
Registers a FragmentLifecycleCallbacks to listen to fragment lifecycle events happening in this FragmentManager.
[Android.Runtime.Register("registerFragmentLifecycleCallbacks", "(Landroid/app/FragmentManager$FragmentLifecycleCallbacks;Z)V", "GetRegisterFragmentLifecycleCallbacks_Landroid_app_FragmentManager_FragmentLifecycleCallbacks_ZHandler", ApiSince=26)]
public abstract void RegisterFragmentLifecycleCallbacks(Android.App.FragmentManager.FragmentLifecycleCallbacks? cb, bool recursive);
[<Android.Runtime.Register("registerFragmentLifecycleCallbacks", "(Landroid/app/FragmentManager$FragmentLifecycleCallbacks;Z)V", "GetRegisterFragmentLifecycleCallbacks_Landroid_app_FragmentManager_FragmentLifecycleCallbacks_ZHandler", ApiSince=26)>]
abstract member RegisterFragmentLifecycleCallbacks : Android.App.FragmentManager.FragmentLifecycleCallbacks * bool -> unit
Parameters
FragmentManager.FragmentLifecycleCallbacks: Callbacks to register
- recursive
- Boolean
boolean: true to automatically register this callback for all child FragmentManagers
- Attributes
Remarks
Registers a FragmentLifecycleCallbacks to listen to fragment lifecycle events happening in this FragmentManager. All registered callbacks will be automatically unregistered when this FragmentManager is destroyed.
Android reference for android.app.FragmentManager.registerFragmentLifecycleCallbacks.
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.