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


fun draw(canvas: Canvas, viewWidth: Int, viewHeight: Int, areaLeft: Float, areaTop: Float, areaRight: Float, areaBottom: Float)(source)

Draws the overlay with its message box centered in an area of the view, e.g. the area inside the map padding.