HERE Android SDK Developer's Guide

Listener<T>

The interface Listener<T> is a member of com.here.android.mpa.pde.PlatformDataRequest.

Type Parameters:

  • T

    Listener data type

Interface Summary

public static abstract interface PlatformDataRequest.Listener

Represents an event listener that reports information about the completion of a request.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in Listener<T>
Methods

public abstract void onCompleted (T data, Error error)

A callback indicating that a request operation has completed.

Interface Details

Represents an event listener that reports information about the completion of a request.

Method Details

public abstract void onCompleted (T data, Error error)

A callback indicating that a request operation has completed.

Parameters:

  • data

    Search results (can be null if no results were found or an error was encountered). E.g. if there is no map data due to working offline, null is returned.

  • error

    An PlatformDataError representing an appropriate error.