Package com.cefrium

Interface CefriumRenderHandler


public interface CefriumRenderHandler
Callback interface for receiving rendered frames from a CefriumBrowser. Frames are delivered as BGRA pixel buffers on the UI thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPaint(int width, int height, ByteBuffer pixels)
    Called when a new frame has been rendered.
  • Method Details

    • onPaint

      void onPaint(int width, int height, ByteBuffer pixels)
      Called when a new frame has been rendered.
      Parameters:
      width - Frame width in pixels.
      height - Frame height in pixels.
      pixels - Direct ByteBuffer containing BGRA pixel data (width * height * 4 bytes). Valid only during this call.