public class AmazonMonetizationEventBuilder extends MonetizationEventBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
AmazonMonetizationEventBuilder(AnalyticsClient analyticsClient)
Construct a AmazonMonetizationEventBuilder with the specified EventClient
|
| Modifier and Type | Method and Description |
|---|---|
static AmazonMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a AmazonMonetizationEventBuilder with the specified Event client
|
protected boolean |
isValid()
Determines if all builder methods on this builder have been called
|
AmazonMonetizationEventBuilder |
withCurrency(String currency)
Sets the currency of the item purchased.
|
AmazonMonetizationEventBuilder |
withFormattedItemPrice(String formattedItemPrice)
Deprecated.
Will be removed. Please set Currency and Item Price. Replaced by
withCurrency(String) and withItemPrice(Double) |
AmazonMonetizationEventBuilder |
withItemPrice(Double itemPrice)
Sets the item price of the item purchased.
|
AmazonMonetizationEventBuilder |
withProductId(String productId)
Sets the product identifier field of the item being purchased
|
AmazonMonetizationEventBuilder |
withQuantity(Double quantity)
Sets the quantity of the item being purchased.
|
build, getCurrency, getFormattedItemPrice, getItemPrice, getProductId, getQuantity, getStore, getTransactionId, setCurrency, setFormattedItemPrice, setItemPrice, setProductId, setQuantity, setStore, setTransactionIdprotected AmazonMonetizationEventBuilder(AnalyticsClient analyticsClient)
analyticsClient - The EventClient to use when building the eventpublic static AmazonMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient - The event client to use when creating monetization
eventspublic AmazonMonetizationEventBuilder withProductId(String productId)
productId - The product id representing the item being purchased@Deprecated public AmazonMonetizationEventBuilder withFormattedItemPrice(String formattedItemPrice)
withCurrency(String) and withItemPrice(Double)formattedItemPrice - The localized formatted price of the itempublic AmazonMonetizationEventBuilder withQuantity(Double quantity)
quantity - Currently, Amazon IAP only supports purchasing 1 item at
a time.public AmazonMonetizationEventBuilder withItemPrice(Double itemPrice)
itemPrice - The numerical price of the itempublic AmazonMonetizationEventBuilder withCurrency(String currency)
currency - The currency code of the currency used to purchase this
item (i.e. "USD" or "$")protected boolean isValid()
MonetizationEventBuilderisValid in class MonetizationEventBuilderCopyright © 2017. All rights reserved.