Interface Map.IRendererCallback

Enclosing class:
Map

public static interface Map.IRendererCallback
This callback can be used to execute tasks on the render thread right before or right after the Map is painted by Map.Renderer.

This callback can for example be used to adapt the camera on each repaint.

You can add or remove this callback from the Map.

  • Method Details

    • onBeforePaint

      void onBeforePaint(@NotNull Map map, @NotNull Map.Renderer mapRenderer)
      This method is called before the renderer paints the contents of the Map.
      Parameters:
      map - the map that owns the renderer
      mapRenderer - the renderer that called this function
    • onAfterPaint

      void onAfterPaint(@NotNull Map map, @NotNull Map.Renderer mapRenderer)
      This method is called after the renderer has finished painting the contents of the Map.
      Parameters:
      map - the map that owns the renderer
      mapRenderer - the renderer that called this function