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 Summary

    Modifier and Type
    Method
    Description
    void
    This method is called after the renderer has finished painting the contents of the Map.
    void
    This method is called before the renderer paints the contents of the Map.
  • Method Details

    • onBeforePaint

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

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