Android.Views.ViewTreeObserver.AddOnWindowAttachListener Method
Register a callback to be invoked when the view hierarchy is attached to a window.

Syntax

[Android.Runtime.Register("addOnWindowAttachListener", "(Landroid/view/ViewTreeObserver$OnWindowAttachListener;)V", "")]
public void AddOnWindowAttachListener (ViewTreeObserver.IOnWindowAttachListener listener)

Parameters

listener
The callback to add

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionIf ViewTreeObserver.IsAlive returns false

Remarks

Register a callback to be invoked when the view hierarchy is attached to a 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