|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type returned if the request succeeds.public interface OuyaResponseListener<T>
Represents a listener for asynchronous replies from the Ouya server to requests made through the OuyaFacade. This class is
generified on the return type of the request. Implementors of this interface are passed to methods on
OuyaFacade
.
Method Summary | |
---|---|
void |
onCancel()
Called when the request is canceled by the user via confirmation, authentication or related dialog. |
void |
onFailure(int errorCode,
java.lang.String errorMessage,
android.os.Bundle optionalData)
Called when the request fails. |
void |
onSuccess(T result)
Called when the request succeeds. |
Method Detail |
---|
void onSuccess(T result)
result
- The success object.void onFailure(int errorCode, java.lang.String errorMessage, android.os.Bundle optionalData)
errorCode
- An HTTP error code between 0 and 999, if there was one. Otherwise, an internal error code from the
Ouya server, documented in the OuyaErrorCodes
class.errorMessage
- Empty for HTTP error codes. Otherwise, a brief, non-localized, explanation of the error.optionalData
- A Map of optional key/value pairs which provide additional information.void onCancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |