queryPurchasesAsync, querySkuDetailsAsync, queryPurchaseHistoryAsync

This reference document contains details, parameters, and usage of queryPurchasesAsyncqueryDetailsAsync and queryPurchaseHistoryAsync

queryPurchasesAsync

Usage

    void queryPurchasesAsync(QueryPurchasesParams params, PurchasesResponseListener listener);

Details

The queryPurchasesAsync method returns the details of the purchased items within your app.

Parameters Usage Description
params QueryPurchasesParams Query purchase params specific to the request
listener PurchasesResponseListener Assigned listener to capture the result of query purchase operation.

querySkuDetailsAsync

Usage

    
    void querySkuDetailsAsync (SkuDetailsParams params, SkuDetailsResponseListener listener)

Details

The querySkuDetailsAsync method is used to perform a network query in order to get the SKU details and to return the result in an asynchronous manner.

Parameters Usage Description
params SkuDetailsParams query params specific to the query request
listener SkuDetailsResponseListener Assigned listener to capture the result of query operation.

queryPurchaseHistoryAsync

Usage

    void queryPurchaseHistoryAsync (String skuType, PurchaseHistoryResponseListener listener)

Details

ThequeryPurchaseHistoryAsyncmethod is used to query for the most recent purchases by the user. It returns the purchase list, including the ones that are expired, consumed, or cancelled.

 

Parameters
skuType String: The type of SKU as listed within BillingClient.SkuType
listener PurchaseHistoryResponseListener: Asynchronous response listener
×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg