Activity.RegisterActivityLifecycleCallbacks Method

Definition

Register an Application.ActivityLifecycleCallbacks instance that receives lifecycle callbacks for only this Activity.

[Android.Runtime.Register("registerActivityLifecycleCallbacks", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V", "GetRegisterActivityLifecycleCallbacks_Landroid_app_Application_ActivityLifecycleCallbacks_Handler", ApiSince=29)]
public virtual void RegisterActivityLifecycleCallbacks (Android.App.Application.IActivityLifecycleCallbacks callback);
[<Android.Runtime.Register("registerActivityLifecycleCallbacks", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V", "GetRegisterActivityLifecycleCallbacks_Landroid_app_Application_ActivityLifecycleCallbacks_Handler", ApiSince=29)>]
abstract member RegisterActivityLifecycleCallbacks : Android.App.Application.IActivityLifecycleCallbacks -> unit
override this.RegisterActivityLifecycleCallbacks : Android.App.Application.IActivityLifecycleCallbacks -> unit

Parameters

callback
Application.IActivityLifecycleCallbacks

The callback instance to register

Attributes

Remarks

Java documentation for android.app.Activity.registerActivityLifecycleCallbacks(android.app.ActivityLifecycleCallbacks).

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