Udostępnij za pośrednictwem


FragmentManager.RegisterFragmentLifecycleCallbacks Method

Definition

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

recursive
Boolean

true to automatically register this callback for all child FragmentManagers

Attributes

Remarks

Java documentation for android.app.FragmentManager.registerFragmentLifecycleCallbacks(android.app.FragmentLifecycleCallbacks, boolean).

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