ViewGroup.SetOnHierarchyChangeListener 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 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
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.