HERE Android SDK Developer's Guide

OnMapRenderListener

The interface OnMapRenderListener is a member of com.here.android.mpa.mapping .

Interface Summary

public abstract interface OnMapRenderListener

Represents an abstract class listener to provide notification upon completion of a Map rendering event.

[For complete information, see the section Interface Details]

See also:

addOnMapRenderListener(OnMapRenderListener)

removeOnMapRenderListener(OnMapRenderListener)

addOnMapRenderListener(OnMapRenderListener)

removeOnMapRenderListener(OnMapRenderListener)

Nested Class Summary

Table 1. Nested Classes in OnMapRenderListener
Nested Classes

public static abstract class OnMapRenderListener.OnMapRenderListenerAdapter

Default implementation for the OnMapRenderListener interface.

Method Summary

Table 2. Methods in OnMapRenderListener
Methods

public abstract void onGraphicsDetached ()

Callback indicating that the map renderer has been cleanly detached from the view.

public abstract void onPostDraw (boolean invalidated, long renderTime)

Callback indicating that a Map drawing event has ended.

public abstract void onPreDraw ()

Callback indicating that a Map drawing event is about to occur.

public abstract void onRenderBufferCreated ()

Callback indicating that the map render buffer has been created.

public abstract void onSizeChanged (int width, int height)

Callback indicating that a Map size has changed following a rotation.

Interface Details

Represents an abstract class listener to provide notification upon completion of a Map rendering event.

See also:

addOnMapRenderListener(OnMapRenderListener)

removeOnMapRenderListener(OnMapRenderListener)

addOnMapRenderListener(OnMapRenderListener)

removeOnMapRenderListener(OnMapRenderListener)

Method Details

public abstract void onGraphicsDetached ()

Callback indicating that the map renderer has been cleanly detached from the view.

public abstract void onPostDraw (boolean invalidated, long renderTime)

Callback indicating that a Map drawing event has ended. Applications can perform custom rendering when this callback is sent.

Note: This callback is made on the rendering thread.

Parameters:

  • invalidated

    A boolean specifying whether the map is invalidated and will redraw

  • renderTime

    The time taken to render the map

public abstract void onPreDraw ()

Callback indicating that a 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 MapObjects 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.

public abstract void onRenderBufferCreated ()

Callback indicating that the map render buffer has been created.

Note: This callback is made on the rendering thread.

public abstract void onSizeChanged (int width, int height)

Callback indicating that a 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.

Parameters:

  • width

    A post-rotation width

  • height

    A post-rotation height