public interface OnMapRenderListener
Map
rendering event.Modifier and Type | Interface and Description |
---|---|
static class |
OnMapRenderListener.OnMapRenderListenerAdapter
Default implementation for the OnMapRenderListener interface.
|
Modifier and Type | Method and Description |
---|---|
void |
onGraphicsDetached()
Callback indicating that the map renderer has been cleanly detached from the view.
|
void |
onPostDraw(boolean invalidated,
long renderTime)
Callback indicating that a
Map drawing event has ended. |
void |
onPreDraw()
Callback indicating that a
Map drawing event is about to occur. |
void |
onRenderBufferCreated()
Callback indicating that the map render buffer has been created.
|
void |
onSizeChanged(int width,
int height)
Callback indicating that a
Map size has changed following
a rotation. |
void onPreDraw()
Map
drawing event is about to occur. Applications can
perform custom rendering when this callback is sent.
This callback is preferred to onPostDraw(boolean, long)
when making changes to
MapObject
s as the changes can be made during the upcoming draw and another Map
invalidation will not need to take place.
Note: This callback is made on the rendering thread.
void onPostDraw(boolean invalidated, long renderTime)
Map
drawing event has ended.
Applications can perform custom rendering when this callback is sent.
Note: This callback is made on the rendering thread.
invalidated
- A boolean
specifying whether the map is
invalidated and will redrawrenderTime
- The time taken to render the mapvoid onSizeChanged(int width, int height)
Map
size has changed following
a rotation. Applications can perform custom rendering when this callback
is sent.
Note: This callback is made on the UI thread.
width
- A post-rotation widthheight
- A post-rotation heightvoid onGraphicsDetached()
void onRenderBufferCreated()
Note: This callback is made on the rendering thread.