public class AndroidPublisher.Purchases.Products extends Object
Modifier and Type | Class and Description |
---|---|
class |
AndroidPublisher.Purchases.Products.Acknowledge |
class |
AndroidPublisher.Purchases.Products.Consume |
class |
AndroidPublisher.Purchases.Products.Get |
Constructor and Description |
---|
Products() |
Modifier and Type | Method and Description |
---|---|
AndroidPublisher.Purchases.Products.Acknowledge |
acknowledge(String packageName,
String productId,
String token,
ProductPurchasesAcknowledgeRequest content)
Acknowledges a purchase of an inapp item.
|
AndroidPublisher.Purchases.Products.Consume |
consume(String packageName,
String productId,
String token)
Consumes a purchase for an inapp item.
|
AndroidPublisher.Purchases.Products.Get |
get(String packageName,
String productId,
String token)
Checks the purchase and consumption status of an inapp item.
|
public AndroidPublisher.Purchases.Products.Acknowledge acknowledge(String packageName, String productId, String token, ProductPurchasesAcknowledgeRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.packageName
- The package name of the application the inapp product was sold in (for example, 'com.some.thing').productId
- The inapp product SKU (for example, 'com.some.thing.inapp1').token
- The token provided to the user's device when the inapp product was purchased.content
- the ProductPurchasesAcknowledgeRequest
IOException
public AndroidPublisher.Purchases.Products.Consume consume(String packageName, String productId, String token) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- The package name of the application the inapp product was sold in (for example, 'com.some.thing').productId
- The inapp product SKU (for example, 'com.some.thing.inapp1').token
- The token provided to the user's device when the inapp product was purchased.IOException
public AndroidPublisher.Purchases.Products.Get get(String packageName, String productId, String token) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.packageName
- The package name of the application the inapp product was sold in (for example, 'com.some.thing').productId
- The inapp product SKU (for example, 'com.some.thing.inapp1').token
- The token provided to the user's device when the inapp product was purchased.IOException
Copyright © 2011–2025 Google. All rights reserved.