onRenderContextEvent

Optional callback for EGL context-loss lifecycle events (Lost/Recovered).

This is useful for production handling and observability when GPU context incidents occur: for example logging diagnostics, pausing dependent UI, or surfacing a fallback state until recovery completes.

The callback is always invoked on the main thread.