com.esri.core.portal
Interface PortalListener<T>

Type Parameters:
T - The type of object the interface will return in the onCallback method.
All Superinterfaces:
CallbackListener<T>

public interface PortalListener<T>
extends CallbackListener<T>

Implement this interface to handle the returned result from an asychronous call.


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

Method Detail

onCallback

void onCallback(T obj)
Handles the result when the call succeeded.

Specified by:
onCallback in interface CallbackListener<T>
Parameters:
obj - the result of a successful task call.

onError

void onError(Throwable e)
Handles the result when the call failed.

Specified by:
onError in interface CallbackListener<T>
Parameters:
e - the exception caught in the task perform.


Copyright © 2012. All Rights Reserved.