Android.Content.Context.RegisterComponentCallbacks Method
Add a new Android.Content.IComponentCallbacks to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called.

Syntax

[Android.Runtime.Register("registerComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V", "GetRegisterComponentCallbacks_Landroid_content_ComponentCallbacks_Handler")]
public virtual void RegisterComponentCallbacks (IComponentCallbacks callback)

Parameters

callback
The interface to call. This can be either a Android.Content.IComponentCallbacks or Android.Content.ComponentCallbacks2 interface.

Remarks

Add a new Android.Content.IComponentCallbacks to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called. Note that you must be sure to use Context.UnregisterComponentCallbacks(IComponentCallbacks) when appropriate in the future; this will not be removed for you.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14