RenderContextEvent

data class RenderContextEvent(val type: RenderContextEventType, val eglErrorCode: Int, val eglErrorName: String, val operation: String)

Event payload emitted from native rendering when EGL context incidents occur.

Constructors

Link copied to clipboard
constructor(type: RenderContextEventType, eglErrorCode: Int, eglErrorName: String, operation: String)

Properties

Link copied to clipboard

Raw EGL error code associated with the event.

Link copied to clipboard

Human-readable EGL error string for eglErrorCode.

Link copied to clipboard

Native operation where the event originated (makeCurrent, swapBuffers, or recover).

Link copied to clipboard

High-level context lifecycle event (Lost or Recovered).