Android Guides | Samples

Android.Views.View.IOnAttachStateChangeListener

Interface definition for a callback to be invoked when this view is attached or detached from its window.

See Also: View+IOnAttachStateChangeListener

Syntax

[Android.Runtime.Register("android/view/View$OnAttachStateChangeListener", "", "Android.Views.View/IOnAttachStateChangeListenerInvoker")]
public interface View.IOnAttachStateChangeListener : IJavaObject, IDisposable

Remarks

Interface definition for a callback to be invoked when this view is attached or detached from its window.

[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

The members of Android.Views.View.IOnAttachStateChangeListener are listed below.

Public Methods

OnViewAttachedToWindow(View)
Called when the view is attached to a window.
OnViewDetachedFromWindow(View)
Called when the view is detached from a window.