Context.RegisterComponentCallbacks(IComponentCallbacks) Context.RegisterComponentCallbacks(IComponentCallbacks) Method

Definition

Add a new 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.

[Android.Runtime.Register("registerComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V", "GetRegisterComponentCallbacks_Landroid_content_ComponentCallbacks_Handler", ApiSince=14)]
public virtual void RegisterComponentCallbacks (Android.Content.IComponentCallbacks callback);
abstract member RegisterComponentCallbacks : Android.Content.IComponentCallbacks -> unit
override this.RegisterComponentCallbacks : Android.Content.IComponentCallbacks -> unit

Parameters

callback
IComponentCallbacks IComponentCallbacks

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

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.

Applies to