HERE Android SDK Developer's Guide

ResponseListener<T>

The interface ResponseListener<T> is a member of com.here.android.mpa.urbanmobility.RequestManager.

Type Parameters:

  • T

Interface Summary

public static abstract interface RequestManager.ResponseListener

Represents a listener to provide information about request result.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in ResponseListener<T>
Methods

public abstract void onError (ErrorCode errorCode, String errorMessage)

A callback indicating that a request has finished with error.

public abstract void onSuccess (T requestResult)

A callback indicating that a request has finished with success.

Interface Details

Represents a listener to provide information about request result.

Method Details

public abstract void onError (ErrorCode errorCode, String errorMessage)

A callback indicating that a request has finished with error.

Parameters:

  • errorCode

    Error code.

  • errorMessage

    Error description string, or null if not available.

public abstract void onSuccess (T requestResult)

A callback indicating that a request has finished with success.

Parameters:

  • requestResult