Compartilhar via


Surface.IsValid Property

Definition

Returns true if this object holds a valid surface.

public virtual bool IsValid { [Android.Runtime.Register("isValid", "()Z", "GetIsValidHandler")] get; }
[<get: Android.Runtime.Register("isValid", "()Z", "GetIsValidHandler")>]
member this.IsValid : bool

Property Value

True if it holds a physical surface, so lockCanvas() will succeed. Otherwise returns false.

Attributes

Remarks

Returns true if this object holds a valid surface.

Java documentation for android.view.Surface.isValid().

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