HERE Android SDK Developer's Guide

Callback<ResultType>

The interface Callback<ResultType> is a member of com.here.android.mpa.customlocation2.CLE2Task.

Type Parameters:

  • ResultType

    data type of result

Interface Summary

public static abstract interface CLE2Task.Callback

Used to notify the client of the result of the operation.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in Callback<ResultType>
Methods

public abstract void onTaskFinished (ResultType result, CLE2Error error)

Called on main thread once CLE2Task finishes with a result and an error status.

Interface Details

Used to notify the client of the result of the operation.

Method Details

public abstract void onTaskFinished (ResultType result, CLE2Error error)

Called on main thread once CLE2Task finishes with a result and an error status.

Parameters:

  • result

    result of the operation if finished successfully, this value is meaningless on operation's failure

  • error

    error status carrying information on how the operation finished