API reference

Product Class

The class that represents the product information for a specific IAP which is available for purchase in your app. You can retrieve more information about the product(s) by using their SKU with [com.meta.horizon.platform.ovr.requests.IAP#getProductsBySKU(String[] skus)](classcom_1_1meta_1_1horizon_1_1platform_1_1ovr_1_1requests_1_1_i_a_p_1ac6deec4a03431355eb6cef520a7536bf)

Constructors

Product ( ptr )
Signature
com.meta.horizon.platform.ovr.models.Product.Product(final long ptr)
Parameters
ptr: final long

Methods

getDescription ()
The description for the product. The description should be meaningful and explanatory to help outline the product and its features.
Signature
String com.meta.horizon.platform.ovr.models.Product.getDescription()
Returns
String  String
getFormattedPrice ()
The formatted string for the com.meta.horizon.platform.ovr.models.Price. This is the same value stored in com.meta.horizon.platform.ovr.models.Price.
Signature
String com.meta.horizon.platform.ovr.models.Product.getFormattedPrice()
Returns
String  String
getName ()
The name of the product. This will be used as a the display name and should be aligned with the user facing title.
Signature
String com.meta.horizon.platform.ovr.models.Product.getName()
Returns
String  String
getPrice ()
The com.meta.horizon.platform.ovr.models.Price of the product contains the currency code, the amount in hundredths, and the formatted string representation.
Signature
Price com.meta.horizon.platform.ovr.models.Product.getPrice()
Returns
Price Price
getSku ()
The unique string that you use to reference the product in your app. The SKU is case-sensitive and should match the SKU reference in your code.
Signature
String com.meta.horizon.platform.ovr.models.Product.getSku()
Returns
String  String
getType ()
The type of product. An In-app purchase (IAP) add-on can be com.meta.horizon.platform.ovr.enums.ProductType#DURABLE, com.meta.horizon.platform.ovr.enums.ProductType#CONSUMABLE, or a com.meta.horizon.platform.ovr.enums.ProductType#SUBSCRIPTION.
Signature
ProductType com.meta.horizon.platform.ovr.models.Product.getType()
Returns
ProductType  ProductType