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

All Known Implementing Classes:
PopupView.AttachmentInfoCallback

public interface CallbackListener<T>

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.

Since:
1.0

Method Summary
 void onCallback(T objs)
          Handles the result of the call.
 void onError(Throwable e)
          Handles the result when the call failed.
 

Method Detail

onCallback

void onCallback(T objs)
Handles the result of the call. If an error has occurred, onError will be called first.

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

onError

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 - the exception caught in the task execution.
Since:
1.0


Copyright © 2012. All Rights Reserved.