LiCallbackQuery Reference
Package: com.applicasa.ApplicasaManager
Declared In: com.applicasa.ApplicasaManager.LiCallbackQuery
Overview
LiCallbackQuery provides a set of public interfaces developers should implement in their application to handle routine callback actions when interacting with the Applicasa SDK. These callback interfaces are typically used when performing SDK-based remote and local data lookups for included SDK classes, such as User, VirtualGood, VirtualCurrency, as well as custom classes automatically generated by your application's unique data objects defined via the Applicasa web console.
This reference only covers the default callback interfaces that are included with Applicasa. Because Applicasa provides such great flexibility to define custom data objects that are then automatically generated into native classes for use in your application, we can't cover those cases here. However, all generated callback interfaces will always follow the patterns found in this document, and will always be included in LiCallbackQuery when developers download the SDK.
Tasks
User Callbacks
LiUserGetByIDCallback
LiUserGetArrayCallback
VirtualCurrency Callbacks
LiVirtualCurrencyGetByIDCallback
LiVirtualCurrencyGetArrayCallback
VirtualGood Callbacks
LiVirtualGoodGetByIDCallback
LiVirtualGoodGetArrayCallback
VirtualGoodCategory Callbacks
LiVirtualGoodCategoryGetByIDCallback
LiVirtualGoodCategoryGetArrayCallback
Interface Methods
LiUserGetByIDCallback
Callback interface for responding to getById() requests on the User class.
public void onGetUserComplete(User item);
public void onGetUserFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling results from getById() requests on the User class..
Developer implementations of onGetUserComplete() should expect to receive a User instance for further handling.
Implementations of onGetUserFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiUserGetArrayCallback
Callback interface for responding to asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the User class.
public void onGetUserComplete(List<User> items);
public void onGetUserFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the User class.
Developer implementations of onGetUserComplete() should expect to receive a List of User objects for further handling.
Implementations of onGetUserFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualCurrencyGetByIDCallback
Callback interface for responding to getById() requests on the VirtualCurrency class.
public void onGetVirtualCurrencyComplete(VirtualCurrency item);
public void onGetVirtualCurrencyFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling results from getById() requests on the VirtualCurrency class..
Developer implementations of onGetVirtualCurrencyComplete() should expect to receive a VirtualCurrency instance for further handling.
Implementations of onGetVirtualCurrencyFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualCurrencyGetArrayCallback
Callback interface for responding to asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualCurrency class.
public void onGetVirtualCurrencyComplete(List<VirtualCurrency> items);
public void onGetVirtualCurrencyFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualCurrency class.
Developer implementations of onGetVirtualCurrencyComplete() should expect to receive a List of VirtualCurrency objects for further handling.
Implementations of onGetVirtualCurrencyFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualGoodGetByIDCallback
Callback interface for responding to getById() requests on the VirtualGood class.
public void onGetVirtualGoodComplete(VirtualGood item);
public void onGetVirtualGoodFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling results from getById() requests on the VirtualGood class..
Developer implementations of onGetVirtualGoodComplete() should expect to receive a VirtualGood instance for further handling.
Implementations of onGetVirtualGoodFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualGoodGetArrayCallback
Callback interface for responding to asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualGood class.
public void onGetVirtualGoodComplete(List<VirtualGood> items);
public void onGetVirtualGoodFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualGood class.
Developer implementations of onGetVirtualGoodComplete() should expect to receive a List of VirtualGood objects for further handling.
Implementations of onGetVirtualGoodFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualGoodCategoryGetByIDCallback
Callback interface for responding to getById() requests on the VirtualGoodCategory class.
public void onGetVirtualGoodCategoryComplete(VirtualGoodCategory item);
public void onGetVirtualGoodCategoryFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling results from getById() requests on the VirtualGoodCategory class..
Developer implementations of onGetVirtualGoodCategoryComplete() should expect to receive a VirtualGoodCategory instance for further handling.
Implementations of onGetVirtualGoodCategoryFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.
LiVirtualGoodCategoryGetArrayCallback
Callback interface for responding to asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualGoodCategory class.
public void onGetVirtualGoodCategoryComplete(List<VirtualGoodCategory> items);
public void onGetVirtualGoodCategoryFailure(LiErrorHandler error);
Discussion:
A simple callback interface for handling asynchronous getArrayWithQuery() and getLocalArrayWithRawSQLQuery() requests on the VirtualGoodCategory class.
Developer implementations of onGetVirtualGoodCategoryComplete() should expect to receive a List of VirtualGoodCategory objects for further handling.
Implementations of onGetVirtualGoodCategoryFailure() should expect to receive an LiErrorHandler object in the error parameter. LiErrorHandler is a custom extension of the standard Exception class.