consumeAsync

This reference document contains details, parameters, and usage of ConsumeAsync

This method is used for the consumption of an in-app product.

Usage

    void consumeAsync (String purchaseToken,  ConsumeResponseListener listener)
    

Details

consumeAsync provides an asynchronous method for consumption. Remember, the consuming process can only be done on products that are owned. Once the product is marked as consumed, it can be re-purchased by the user.

Parameters. Description
PurchaseToken Purchase consumption-specific token.
Listener consumeResponseListener: Assigned listener to capture the consumption confirmation asynchronously using purchase callback with purchase tokens and BillingClient.BillingResponseCode

 

×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg