HERE Android SDK Developer's Guide

OffScreenRenderer

The interface OffScreenRenderer is a member of com.here.android.mpa.common .

Interface Summary

public abstract interface OffScreenRenderer

Base interface for an offscreen renderer.

[For complete information, see the section Interface Details]

See also:

MapOffScreenRenderer

Nested Class Summary

Table 1. Nested Classes in OffScreenRenderer
Nested Classes

public static abstract interface OffScreenRenderer.SurfaceUpdatedListener

Listener interface to be notified when the surface has been re-drawn and comitted.

Method Summary

Table 2. Methods in OffScreenRenderer
Methods

public abstract void getScreenCapture (OnScreenCaptureListener listener)

Returns the full screen bitmap for the Map.

public abstract OffScreenRenderer setSize (int width, int height)

Set the size of the requested screen surface

public abstract void start ()

Start the offscreen renderer.

public abstract void start (SurfaceHolder renderTarget, SurfaceUpdatedListener listener)

Start the offscreen renderer.

public abstract void stop ()

Stop the offscreen renderer.

Interface Details

Base interface for an offscreen renderer. This interface is useful for drawing a Map image without an actual View.

See also:

MapOffScreenRenderer

Method Details

public abstract void getScreenCapture (OnScreenCaptureListener listener)

Returns the full screen bitmap for the Map. This method is asynchronous and will invoke a callback once the operation is completed through the OnScreenCaptureListener. The OffScreenRenderer must be running to create the screen capture.

Parameters:

  • listener

    A OnScreenCaptureListener to listen for the callback when screen capture is complete.

public abstract OffScreenRenderer setSize (int width, int height)

Set the size of the requested screen surface

Parameters:

  • width

    The screen surface width, in number of pixels

  • height

    The screen surface height, in number of pixels

Returns:

This OffScreenRenderer

public abstract void start ()

Start the offscreen renderer. A new PBuffer based surface will be allocated. Before calling this method, setSize(int, int) must have been called with valid values.

public abstract void start (SurfaceHolder renderTarget, SurfaceUpdatedListener listener)

Start the offscreen renderer. The renderer will be attached to the supplied SurfaceHolder argument.

Parameters:

  • renderTarget

    Surface to attach to.

  • listener

    Callback when the surface has been updated

public abstract void stop ()

Stop the offscreen renderer. All resource allocated will be released.

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.