Android Guides | Samples

Android.Views.ViewTreeObserver.IOnWindowAttachListener

Interface definition for a callback to be invoked when the view hierarchy is attached to and detached from its window.

See Also: ViewTreeObserver+IOnWindowAttachListener

Syntax

[Android.Runtime.Register("android/view/ViewTreeObserver$OnWindowAttachListener", "", "Android.Views.ViewTreeObserver/IOnWindowAttachListenerInvoker")]
public interface ViewTreeObserver.IOnWindowAttachListener : IJavaObject, IDisposable

Remarks

Interface definition for a callback to be invoked when the view hierarchy is attached to and 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 18

The members of Android.Views.ViewTreeObserver.IOnWindowAttachListener are listed below.

Public Methods

OnWindowAttached()
Callback method to be invoked when the view hierarchy is attached to a window
OnWindowDetached()
Callback method to be invoked when the view hierarchy is detached from a window