View.AddOnAttachStateChangeListener(View+IOnAttachStateChangeListener) Method

Definition

Add a listener for attach state changes.

[Android.Runtime.Register("addOnAttachStateChangeListener", "(Landroid/view/View$OnAttachStateChangeListener;)V", "GetAddOnAttachStateChangeListener_Landroid_view_View_OnAttachStateChangeListener_Handler")]
public virtual void AddOnAttachStateChangeListener (Android.Views.View.IOnAttachStateChangeListener? listener);
[<Android.Runtime.Register("addOnAttachStateChangeListener", "(Landroid/view/View$OnAttachStateChangeListener;)V", "GetAddOnAttachStateChangeListener_Landroid_view_View_OnAttachStateChangeListener_Handler")>]
abstract member AddOnAttachStateChangeListener : Android.Views.View.IOnAttachStateChangeListener -> unit
override this.AddOnAttachStateChangeListener : Android.Views.View.IOnAttachStateChangeListener -> unit

Parameters

listener
View.IOnAttachStateChangeListener

Listener to attach

Attributes

Remarks

Java documentation for android.view.View.addOnAttachStateChangeListener(android.view.OnAttachStateChangeListener).

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

See also

  • <xref:Android.Views.View.RemoveOnAttachStateChangeListener(.IOnAttachStateChangeListener)>