ViewGroup.SetOnHierarchyChangeListener(ViewGroup+IOnHierarchyChangeListener) ViewGroup.SetOnHierarchyChangeListener(ViewGroup+IOnHierarchyChangeListener) 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);
abstract member SetOnHierarchyChangeListener : Android.Views.ViewGroup.IOnHierarchyChangeListener -> unit
override this.SetOnHierarchyChangeListener : Android.Views.ViewGroup.IOnHierarchyChangeListener -> unit

Parameters

listener
ViewGroup.IOnHierarchyChangeListener ViewGroup.IOnHierarchyChangeListener

the callback to invoke on hierarchy change

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