Android.Views.View.AddOnAttachStateChangeListener Method
Add a listener for attach state changes.

Syntax

[Android.Runtime.Register("addOnAttachStateChangeListener", "(Landroid/view/View$OnAttachStateChangeListener;)V", "GetAddOnAttachStateChangeListener_Landroid_view_View_OnAttachStateChangeListener_Handler")]
public virtual void AddOnAttachStateChangeListener (View.IOnAttachStateChangeListener listener)

See Also

View.RemoveOnAttachStateChangeListener(.IOnAttachStateChangeListener)

Parameters

listener
Listener to attach

Remarks

Add a listener for attach state changes. This listener will be called whenever this view is attached or detached from a window. Remove the listener using View.RemoveOnAttachStateChangeListener(.IOnAttachStateChangeListener).

[Android Documentation]

Requirements

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