Freigeben über


ViewTreeObserver.IsAlive Property

Definition

Indicates whether this ViewTreeObserver is alive.

public bool IsAlive { [Android.Runtime.Register("isAlive", "()Z", "")] get; }
[<get: Android.Runtime.Register("isAlive", "()Z", "")>]
member this.IsAlive : bool

Property Value

True if this object is alive and be used, false otherwise.

Attributes

Remarks

Indicates whether this ViewTreeObserver is alive. When an observer is not alive, any call to a method (except this one) will throw an exception.

If an application keeps a long-lived reference to this ViewTreeObserver, it should always check for the result of this method before calling any other method.

Java documentation for android.view.ViewTreeObserver.isAlive().

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