public interface

CallbackListener

com.esri.core.map.CallbackListener<T>

Class Overview

Implement this interface to handle the returned result from an asynchronous call. Note that the onCallback method will still be called in the event of an error. In this case onError will be called first.

Summary

Public Methods
abstract void onCallback(T objs)
Handles the result of the call.
abstract void onError(Throwable e)
Handles the result when the call failed.

Public Methods

public abstract void onCallback (T objs)

Handles the result of the call. If an error has occurred, onError will be called first.

Parameters
objs T: the result of a successful call. Note that if the call failed, this object may be null or invalid.

public abstract void onError (Throwable e)

Handles the result when the call failed. The implementation of this should provide some means of indicating failure when onCallback is called in the event of call failure.

Parameters
e Throwable: the exception caught in the task execution.