Why Meta Quest?
Design
Develop
API references
Distribute
Blog
Support
Login
platform-android v71 Reference Guide
platform-android v71 Reference Guide
Unity
Select your SDK
Overview
com
meta
horizon
platform
ovr
ovr
Core
Error
Message
Message
MessageType
enums
enums
AccountAgeCategory
PlatformInitializeResult
ProductType
models
models
PlatformInitialize
Price
Product
ProductArray
Purchase
PurchaseArray
UserAccountAgeCategory
options
options
PlatformInitializeOptions
requests
requests
IAP
Request
Request
Handler
UserAgeCategory
Code samples
Downloads
Release notes
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)
Member Functions
Product
( final long ptr )
String
getDescription
( )
The description for the product. The description should be meaningful and explanatory to help outline the product and its features.
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
.
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.
Returns
String
Price
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.
Returns
Price
String
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.
Returns
String
ProductType
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
.
Returns
ProductType
Did you find this page helpful?
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
©2024 Meta