Skip to content

Commit

Permalink
Remove separating of subs and inapps (in IIabService)
Browse files Browse the repository at this point in the history
leave old interfaces to provide backward compatibility
  • Loading branch information
EugeneButusov committed Mar 5, 2016
1 parent 5133208 commit 69838fb
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions SoomlaAndroidStore/src/com/soomla/store/billing/IIabService.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,11 @@ void consumeAsync(IabPurchase purchase,
* @param extraData extra data (developer payload), which will be returned with the purchase
* data when the purchase completes.
*/
void launchPurchaseFlow(String sku,
void launchPurchaseFlow(String itemType,
String sku,
final IabCallbacks.OnPurchaseListener purchaseListener,
String extraData);

/**
* Initiates the UI flow for an in-app subscriptions.
* Call this method to initiate an in-app subscription which will bring up the Market screen.
* The calling activity will be paused while the user interacts with the Market.
* This method MUST be called from the UI thread of the Activity.
*
* @param sku the sku of the item to purchase.
* @param purchaseListener the listener to notify when the subscription process finishes
* @param extraData extra data (developer payload), which will be returned with the subscription
* data when the subscriptions completes.
*/
void launchSubscriptionFlow(String sku,
final IabCallbacks.OnPurchaseListener purchaseListener,
String extraData);

/**
* Restores purchases asynchronously. This operation will get all previously purchased
* non-consumables and invoke the given callback.
Expand All @@ -93,14 +79,6 @@ void launchSubscriptionFlow(String sku,
*/
void restorePurchasesAsync(IabCallbacks.OnRestorePurchasesListener restorePurchasesListener);

/**
* Restores subscriptions asynchronously. This operation will get all active subscriptions
* and invoke the given callback.
*
* @param restoreSubscriptionsListener the listener to notify when the query operation completes.
*/
void restoreSubscriptionsAsync(IabCallbacks.OnRestorePurchasesListener restoreSubscriptionsListener);

/**
* Fetches all details for the given skus. The details is what the developer provided on
* the developer console.
Expand Down

0 comments on commit 69838fb

Please sign in to comment.