ViewGroup.SetOnHierarchyChangeListener Method

Definition

Register a callback to be invoked when a child is added to or removed from this view.

[Android.Runtime.Register("setOnHierarchyChangeListener", "(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V", "GetSetOnHierarchyChangeListener_Landroid_view_ViewGroup_OnHierarchyChangeListener_Handler")]
public virtual void SetOnHierarchyChangeListener (Android.Views.ViewGroup.IOnHierarchyChangeListener? listener);
[<Android.Runtime.Register("setOnHierarchyChangeListener", "(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V", "GetSetOnHierarchyChangeListener_Landroid_view_ViewGroup_OnHierarchyChangeListener_Handler")>]
abstract member SetOnHierarchyChangeListener : Android.Views.ViewGroup.IOnHierarchyChangeListener -> unit
override this.SetOnHierarchyChangeListener : Android.Views.ViewGroup.IOnHierarchyChangeListener -> unit

Parameters

listener
ViewGroup.IOnHierarchyChangeListener

the callback to invoke on hierarchy change

Attributes

Remarks

Java documentation for android.view.ViewGroup.setOnHierarchyChangeListener(android.view.OnHierarchyChangeListener).

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