Added commentarys on callbacks
This commit is contained in:
parent
8d0e7c549b
commit
f4a6bfe593
1 changed files with 9 additions and 6 deletions
|
@ -24,23 +24,26 @@ import java.util.ArrayList;
|
||||||
* @author Sylvain Berfini
|
* @author Sylvain Berfini
|
||||||
*/
|
*/
|
||||||
public interface InAppPurchaseListener {
|
public interface InAppPurchaseListener {
|
||||||
|
/**
|
||||||
|
* Callback called when the in-app purchase listener is connected and available for queries
|
||||||
|
*/
|
||||||
void onServiceAvailableForQueries();
|
void onServiceAvailableForQueries();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Callback called when the query for items available for purchase is done
|
||||||
* @param items
|
* @param items the list of items that can be purchased (also contains the ones already bought)
|
||||||
*/
|
*/
|
||||||
void onAvailableItemsForPurchaseQueryFinished(ArrayList<Purchasable> items);
|
void onAvailableItemsForPurchaseQueryFinished(ArrayList<Purchasable> items);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Callback called when the query for items bought by the user is done
|
||||||
* @param items
|
* @param items the list of items already purchased by the user
|
||||||
*/
|
*/
|
||||||
void onPurchasedItemsQueryFinished(ArrayList<Purchasable> items);
|
void onPurchasedItemsQueryFinished(ArrayList<Purchasable> items);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Callback called when the purchase has been validated by our external server
|
||||||
* @param item
|
* @param item the item the user just bought
|
||||||
*/
|
*/
|
||||||
void onPurchasedItemConfirmationQueryFinished(Purchasable item);
|
void onPurchasedItemConfirmationQueryFinished(Purchasable item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue