Sdílet prostřednictvím


ViewTreeObserver.AddOnWindowAttachListener Method

Definition

Register a callback to be invoked when the view hierarchy is attached to a window.

[Android.Runtime.Register("addOnWindowAttachListener", "(Landroid/view/ViewTreeObserver$OnWindowAttachListener;)V", "")]
public void AddOnWindowAttachListener (Android.Views.ViewTreeObserver.IOnWindowAttachListener? listener);
[<Android.Runtime.Register("addOnWindowAttachListener", "(Landroid/view/ViewTreeObserver$OnWindowAttachListener;)V", "")>]
member this.AddOnWindowAttachListener : Android.Views.ViewTreeObserver.IOnWindowAttachListener -> unit

Parameters

listener
ViewTreeObserver.IOnWindowAttachListener

The callback to add

Attributes

Exceptions

If IsAlive returns false

Remarks

Java documentation for android.view.ViewTreeObserver.addOnWindowAttachListener(android.view.OnWindowAttachListener).

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