Android Client Reference
Class CallbackRegistration<T>
Namespace: com.playerio
Language: Java
A generic callback adapter for methods returning registration errors.
This class is identical to the Callback
The easiest way to implement a callback is to use an anonymous inner class, like this:
Methods | |||
---|---|---|---|
public void |
If an error occurred for your method call, this method will be called with the error. You should override this method if you want to perform any action when an error happens, for example alerting the user or logging the error, etc. |
||
public void |
If the method call is a success, this method will be called with whatever the results were for that call. You should override this method if you want to handle the success case. |
CallbackRegistration<T>.onError
public void |
|
If an error occurred for your method call, this method will be called with the error. You should override this method if you want to perform any action when an error happens, for example alerting the user or logging the error, etc.
Arguments
PlayerIORegistrationError | error |
CallbackRegistration<T>.onSuccess
public void |
|
If the method call is a success, this method will be called with whatever the results were for that call. You should override this method if you want to handle the success case.
Arguments
T | result |