Freigeben über


HardwareBuffer.IsSupported Method

Definition

Queries whether the given buffer description is supported by the system.

[Android.Runtime.Register("isSupported", "(IIIIJ)Z", "", ApiSince=29)]
public static bool IsSupported (int width, int height, Android.Hardware.HardwareBufferFormat format, int layers, long usage);
[<Android.Runtime.Register("isSupported", "(IIIIJ)Z", "", ApiSince=29)>]
static member IsSupported : int * int * Android.Hardware.HardwareBufferFormat * int * int64 -> bool

Parameters

width
Int32

The width in pixels of the buffer

height
Int32

The height in pixels of the buffer

layers
Int32

The number of layers in the buffer

usage
Int64

The

Returns

True if the combination is supported, false otherwise.

Attributes

Remarks

Queries whether the given buffer description is supported by the system. If this returns true, then the allocation may succeed until resource exhaustion occurs. If this returns false then this combination will never succeed.

Java documentation for android.hardware.HardwareBuffer.isSupported(int, int, int, int, long).

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