draw

fun draw(canvas: Canvas, viewWidth: Int, viewHeight: Int)(source)

Draws the error overlay on the canvas.

The overlay covers the entire view with semi-transparent gray, and displays an error message box centered at the view center (screen center).

Parameters

canvas

The canvas to draw on

viewWidth

The view width in pixels

viewHeight

The view height in pixels