ViewTreeObserver.AddOnWindowAttachListener 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注册在视图层次结构附加到窗口时要调用的回调。
[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
参数
要添加的回调
- 属性
例外
如果 IsAlive 返回 false
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。