AeroGear Android Library 1.1.0

org.jboss.aerogear.android
Interface Callback<T>

Type Parameters:
T - The data type of the operation
All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractActivityCallback, AbstractCallback, AbstractFragmentActivityCallback, AbstractFragmentCallback, AbstractSupportFragmentCallback

public interface Callback<T>
extends Serializable

A handler for consuming the data/result of an operation.


Method Summary
 void onFailure(Exception e)
          Invoked when an operation has failed.
 void onSuccess(T data)
          Called when operation completes with success.
 

Method Detail

onSuccess

void onSuccess(T data)
Called when operation completes with success.

Parameters:
data - The received data of the operation.

onFailure

void onFailure(Exception e)
Invoked when an operation has failed.

Parameters:
e - The exception to give more insights on why the operation has failed.

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.