Android.Views.ViewTreeObserver.AddOnGlobalLayoutListener Method
Register a callback to be invoked when the global layout state or the visibility of views within the view tree changes

Syntax

[Android.Runtime.Register("addOnGlobalLayoutListener", "(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V", "")]
public void AddOnGlobalLayoutListener (ViewTreeObserver.IOnGlobalLayoutListener 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 global layout state or the visibility of views within the view tree changes

[Android Documentation]

Requirements

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