Share via


View.IsHardwareAccelerated Property

Definition

Indicates whether this view is attached to a hardware accelerated window or not.

public virtual bool IsHardwareAccelerated { [Android.Runtime.Register("isHardwareAccelerated", "()Z", "GetIsHardwareAcceleratedHandler")] get; }
[<get: Android.Runtime.Register("isHardwareAccelerated", "()Z", "GetIsHardwareAcceleratedHandler")>]
member this.IsHardwareAccelerated : bool

Property Value

True if the view is attached to a window and the window is hardware accelerated; false in any other case.

Attributes

Remarks

Indicates whether this view is attached to a hardware accelerated window or not.

Even if this method returns true, it does not mean that every call to #draw(android.graphics.Canvas) will be made with an hardware accelerated android.graphics.Canvas. For instance, if this view is drawn onto an offscreen android.graphics.Bitmap and its window is hardware accelerated, android.graphics.Canvas#isHardwareAccelerated() will likely return false, and this method will return true.

Java documentation for android.view.View.isHardwareAccelerated().

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