Activity.RegisterActivityLifecycleCallbacks 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.
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
The callback instance to register
- Attributes
Remarks
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.