public class AmazonMonetizationEventBuilder extends MonetizationEventBuilder
| Modifier and Type | Method and Description |
|---|---|
static AmazonMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a AmazonMonetizationEventBuilder with the specified Event client
|
AmazonMonetizationEventBuilder |
withCurrency(java.lang.String currency)
Sets the currency of the item purchased.
|
AmazonMonetizationEventBuilder |
withFormattedItemPrice(java.lang.String formattedItemPrice)
Deprecated.
Will be removed. Please set Currency and Item Price. Replaced by
withCurrency(String) and withItemPrice(Double) |
AmazonMonetizationEventBuilder |
withItemPrice(java.lang.Double itemPrice)
Sets the item price of the item purchased.
|
AmazonMonetizationEventBuilder |
withProductId(java.lang.String productId)
Sets the product identifier field of the item being purchased
|
AmazonMonetizationEventBuilder |
withQuantity(java.lang.Double quantity)
Sets the quantity of the item being purchased.
|
buildpublic static AmazonMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient - The event client to use when creating monetization
eventspublic AmazonMonetizationEventBuilder withProductId(java.lang.String productId)
productId - The product id representing the item being purchased@Deprecated public AmazonMonetizationEventBuilder withFormattedItemPrice(java.lang.String formattedItemPrice)
withCurrency(String) and withItemPrice(Double)formattedItemPrice - The localized formatted price of the itempublic AmazonMonetizationEventBuilder withQuantity(java.lang.Double quantity)
quantity - Currently, Amazon IAP only supports purchasing 1 item at
a time.public AmazonMonetizationEventBuilder withItemPrice(java.lang.Double itemPrice)
itemPrice - The numerical price of the itempublic AmazonMonetizationEventBuilder withCurrency(java.lang.String currency)
currency - The currency code of the currency used to purchase this
item (i.e. "USD" or "$")Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.