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

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.