Added in API level 34
RenderResult
class RenderResult
kotlin.Any | |
↳ | android.graphics.HardwareBufferRenderer.RenderResult |
Class that contains data regarding the result of the render request. Consumers are to wait on the provided SyncFence
before consuming the HardwareBuffer provided to HardwareBufferRenderer
as well as verify that the status returned by RenderResult.getStatus()
returns RenderResult.SUCCESS
.
Summary
Constants | |
---|---|
static Int |
Render request failed with an unknown error |
static Int |
Render request was completed successfully |
Public methods | |
---|---|
SyncFence |
getFence() |
Int |
Constants
ERROR_UNKNOWN
Added in API level 34
static val ERROR_UNKNOWN: Int
Render request failed with an unknown error
Value: 1
SUCCESS
Added in API level 34
static val SUCCESS: Int
Render request was completed successfully
Value: 0
Public methods
getFence
Added in API level 34
fun getFence(): SyncFence
Return | |
---|---|
SyncFence |
This value cannot be null . |
getStatus
Added in API level 34
fun getStatus(): Int
Return | |
---|---|
Int |
Value is android.graphics.HardwareBufferRenderer.RenderResult#SUCCESS , or android.graphics.HardwareBufferRenderer.RenderResult#ERROR_UNKNOWN |