HERE Android SDK Developer's Guide

OnClearListener

The interface OnClearListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnClearListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

Listener interface for clearing objects from the map.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnClearListener
Methods

public abstract void onClear (Route route)

A callback for clearing the current route.

public abstract void onClear (java.util.List <PlaceLink> places)

A callback for clearing the current search results.

public abstract void onClear ()

A callback for a generic clear request without specifying specific target.

Interface Details

Listener interface for clearing objects from the map. When a particular callback is received, the application is responsible for clearing the map objects, if desired.

Method Details

public abstract void onClear (Route route)

A callback for clearing the current route. e.g. "Clear current route"

Parameters:

  • route

    The Route object to clear from the map.

public abstract void onClear (java.util.List <PlaceLink> places)

A callback for clearing the current search results. e.g. "Clear search"

Parameters:

  • places

    The search result PlaceLink objects to clear from the map.

public abstract void onClear ()

A callback for a generic clear request without specifying specific target. e.g. "Clear everything"