Skip to content

Commit 30a8312

Browse files
committed
Update for v72 of the Platform SDK
1 parent 789e3b7 commit 30a8312

11 files changed

+221
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
/.idea/workspace.xml
99
/.idea/navEditor.xml
1010
/.idea/assetWizardSettings.xml
11+
/.vscode/
1112
.DS_Store
1213
/build
1314
/captures
1415
.externalNativeBuild
1516
.cxx
1617
local.properties
1718
/thirdparty/ovr_platform_sdk/
19+
/toolkit/src/gen/
1820

1921
# Binaries
2022
*.o

doc_classes/MetaPlatformSDK.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,30 @@
12771277
<constant name="NET_SYNC_VOIP_STREAM_MODE_MONO" value="2" enum="NetSyncVoipStreamMode">
12781278
Represents the mono stream mode the VoIP stream uses. The advantages mono stream mode has over ambisonic stream mode is the audio encoding and decoding require less computational resources and thus audio streams require less bandwidth. So it is typically used in applications with limited network resources.
12791279
</constant>
1280+
<constant name="OFFER_TERM_UNKNOWN" value="0" enum="OfferTerm">
1281+
An unknown offer term.
1282+
</constant>
1283+
<constant name="OFFER_TERM_WEEKLY" value="1" enum="OfferTerm">
1284+
Represents that the offer term is weekly. This means that the offer will be valid for a period of one week from the date of purchase.
1285+
</constant>
1286+
<constant name="OFFER_TERM_BIWEEKLY" value="2" enum="OfferTerm">
1287+
Represents that the offer term is biweekly. This means that the offer will be valid for a period of two weeks from the date of purchase.
1288+
</constant>
1289+
<constant name="OFFER_TERM_MONTHLY" value="3" enum="OfferTerm">
1290+
Represents that the offer term is monthly. This means that the offer will be valid for a period of one month from the date of purchase.
1291+
</constant>
1292+
<constant name="OFFER_TERM_QUARTERLY" value="4" enum="OfferTerm">
1293+
Represents that the offer term is quarterly. This means that the offer will be valid for a period of three months from the date of purchase.
1294+
</constant>
1295+
<constant name="OFFER_TERM_SEMIANNUAL" value="5" enum="OfferTerm">
1296+
Represents that the offer term is every 6 months. This means that the offer will be valid for a period of six months from the date of purchase.
1297+
</constant>
1298+
<constant name="OFFER_TERM_ANNUAL" value="6" enum="OfferTerm">
1299+
Represents that the offer term is annual. This means that the offer will be valid for a period of one year from the date of purchase.
1300+
</constant>
1301+
<constant name="OFFER_TERM_BIANNUAL" value="7" enum="OfferTerm">
1302+
Represents that the offer term is every 2 years. This means that the offer will be valid for a period of two years from the date of purchase.
1303+
</constant>
12801304
<constant name="TIME_WINDOW_UNKNOWN" value="0" enum="TimeWindow">
12811305
An unknown time window.
12821306
</constant>
@@ -1878,6 +1902,15 @@
18781902
<constant name="APP_INSTALL_RESULT_SUCCESS" value="7" enum="AppInstallResult">
18791903
Install of the app succeeded.
18801904
</constant>
1905+
<constant name="OFFER_TYPE_UNKNOWN" value="0" enum="OfferType">
1906+
An unknown offer type.
1907+
</constant>
1908+
<constant name="OFFER_TYPE_INTROOFFER" value="1" enum="OfferType">
1909+
This value indicates that the offer is an intro offer, which is typically a special promotion or discount offered to new customers.
1910+
</constant>
1911+
<constant name="OFFER_TYPE_FREETRIAL" value="2" enum="OfferType">
1912+
This value indicates that the offer is a free trial, which allows customers to try out a product or service without paying for it.
1913+
</constant>
18811914
<constant name="PLATFORM_INITIALIZE_SUCCESS" value="0" enum="PlatformInitializeResult">
18821915
Oculus Platform SDK initialization succeeded.
18831916
</constant>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_BillingPlan" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
Represents a billing plan.
5+
</brief_description>
6+
<description>
7+
Represents a billing plan.
8+
</description>
9+
<tutorials>
10+
</tutorials>
11+
<members>
12+
<member name="paid_offer" type="MetaPlatformSDK_PaidOffer" setter="" getter="get_paid_offer">
13+
The paid offer associated with this billing plan.
14+
</member>
15+
<member name="trial_offers" type="MetaPlatformSDK_TrialOfferArray" setter="" getter="get_trial_offers">
16+
A list of trial offers associated with the billing plan.
17+
This method may return [code]null[/code]. This indicates that the value is not present or that the current app or user is not permitted to access it.
18+
</member>
19+
</members>
20+
</class>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_BillingPlanArray" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
An array of billing plans.
5+
</brief_description>
6+
<description>
7+
An array of [MetaPlatformSDK_BillingPlan]s.
8+
[b]NOTE:[/b] This isn't a Godot [Array], but you can loop over it using [code]for x in arr[/code] just like a Godot [Array].
9+
</description>
10+
<tutorials>
11+
</tutorials>
12+
<methods>
13+
<method name="get_element" qualifiers="const">
14+
<return type="MetaPlatformSDK_BillingPlan" />
15+
<param index="0" name="index" type="int" />
16+
<description>
17+
Returns an element in the array by index.
18+
</description>
19+
</method>
20+
<method name="size" qualifiers="const">
21+
<return type="int" />
22+
<description>
23+
Returns the size of the array.
24+
</description>
25+
</method>
26+
</methods>
27+
</class>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_ContentRating" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
Represents a content rating.
5+
</brief_description>
6+
<description>
7+
Represents a content rating.
8+
</description>
9+
<tutorials>
10+
</tutorials>
11+
<methods>
12+
<method name="get_descriptor" qualifiers="const">
13+
<return type="String" />
14+
<param index="0" name="index" type="int" />
15+
<description>
16+
The list of descriptors which indicate content within the product that may have triggered a particular age rating or may be of interest or concern to consumers, e.g., "Blood and Gore", "Intense Violence", etc.
17+
</description>
18+
</method>
19+
<method name="get_interactive_element" qualifiers="const">
20+
<return type="String" />
21+
<param index="0" name="index" type="int" />
22+
<description>
23+
The list of interactive elements, which advise consumers up front that a [MetaPlatformSDK_Product] includes interactive or online behaviors/options that may be of interest or concern, e.g., "In-App Purchases".
24+
</description>
25+
</method>
26+
</methods>
27+
<members>
28+
<member name="age_rating_image_uri" type="String" setter="" getter="get_age_rating_image_uri" default="&quot;&quot;">
29+
URI for the image that needs to be shown for the content rating of the [MetaPlatformSDK_Product].
30+
</member>
31+
<member name="age_rating_text" type="String" setter="" getter="get_age_rating_text" default="&quot;&quot;">
32+
The age rating text is the text version of the rating used to describe age appropriateness by the International Age Rating Coalition (IARC).
33+
</member>
34+
<member name="descriptors_size" type="int" setter="" getter="get_descriptors_size" default="0">
35+
The number of descriptors.
36+
</member>
37+
<member name="interactive_elements_size" type="int" setter="" getter="get_interactive_elements_size" default="0">
38+
The number of interactive elements.
39+
</member>
40+
<member name="rating_definition_uri" type="String" setter="" getter="get_rating_definition_uri" default="&quot;&quot;">
41+
The URI pointing to a website with International Age Rating Coalition (IARC) rating definitions from local rating authorities (e.g., Australian Classification Board, ESRB, GRAC, etc).
42+
</member>
43+
</members>
44+
</class>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_PaidOffer" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
Represents a paid offer.
5+
</brief_description>
6+
<description>
7+
Represents a paid offer.
8+
</description>
9+
<tutorials>
10+
</tutorials>
11+
<members>
12+
<member name="price" type="MetaPlatformSDK_Price" setter="" getter="get_price">
13+
The [MetaPlatformSDK_Price] of the paid offer contains the currency code, the amount in hundredths, and the formatted string representation.
14+
</member>
15+
<member name="subscription_term" type="int" setter="" getter="get_subscription_term" enum="MetaPlatformSDK.OfferTerm" default="0">
16+
Specifies the term of the offer.
17+
</member>
18+
</members>
19+
</class>

doc_classes/MetaPlatformSDK_Product.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,33 @@
99
<tutorials>
1010
</tutorials>
1111
<members>
12+
<member name="billing_plans" type="MetaPlatformSDK_BillingPlanArray" setter="" getter="get_billing_plans">
13+
The billing plans related to the product. This may be [code]null[/code]. This indicates that the value is not present or that the curent app or user is not permitted to access it.
14+
</member>
15+
<member name="content_rating" type="MetaPlatformSDK_ContentRating" setter="" getter="get_content_rating">
16+
The content rating that specifies the age rating as well as other important information that needs to be displayed to the user per local regulations. This may be [code]null[/code]. This indicates that the value is not present or that the curent app or user is not permitted to access it.
17+
</member>
18+
<member name="cover_url" type="String" setter="" getter="get_cover_url" default="&quot;&quot;">
19+
The URI for the cover image for the product being sold.
20+
</member>
1221
<member name="description" type="String" setter="" getter="get_description" default="&quot;&quot;">
1322
The description for the product. The description should be meaningful and explanatory to help outline the product and its features.
1423
</member>
1524
<member name="formatted_price" type="String" setter="" getter="get_formatted_price" default="&quot;&quot;">
1625
The formatted string for the [MetaPlatformSDK_Price].
1726
</member>
27+
<member name="icon_url" type="String" setter="" getter="get_icon_url" default="&quot;&quot;">
28+
The URI for the product icon.
29+
</member>
1830
<member name="name" type="String" setter="" getter="get_name" default="&quot;&quot;">
1931
The name of the product. This will be used as a the display name and should be aligned with the user facing title.
2032
</member>
2133
<member name="price" type="MetaPlatformSDK_Price" setter="" getter="get_price">
2234
The [MetaPlatformSDK_Price] of the product contains the currency code, the amount in hundredths, and the formatted string representation.
2335
</member>
36+
<member name="short_description" type="String" setter="" getter="get_short_description" default="&quot;&quot;">
37+
The short description of the product. To be used in conjunction with the [member description].
38+
</member>
2439
<member name="sku" type="String" setter="" getter="get_sku" default="&quot;&quot;">
2540
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.
2641
</member>

doc_classes/MetaPlatformSDK_Purchase.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@
2727
<member name="sku" type="String" setter="" getter="get_sku" default="&quot;&quot;">
2828
The SKU of the IAP [MetaPlatformSDK_Product] that was purchased. This value is case-sensitive. To retrieve the product information, you can use this value when calling [method MetaPlatformSDK.iap_get_products_by_sku_async].
2929
</member>
30+
<member name="type" type="int" setter="" getter="get_type" enum="MetaPlatformSDK.ProductType" default="0">
31+
The type of the IAP [MetaPlatformSDK_Product] that was purchased.
32+
</member>
3033
</members>
3134
</class>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_TrialOffer" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
Represents a trial offer.
5+
</brief_description>
6+
<description>
7+
Represents a trial offer.
8+
</description>
9+
<tutorials>
10+
</tutorials>
11+
<members>
12+
<member name="max_term_count" type="int" setter="" getter="get_max_term_count" default="0">
13+
The maximum term for which a the trial offer is valid.
14+
</member>
15+
<member name="price" type="MetaPlatformSDK_Price" setter="" getter="get_price">
16+
The price of the trial offer, which contains the currency code, the amount in hundredths, and the formatted string representation.
17+
</member>
18+
<member name="trial_term" type="int" setter="" getter="get_trial_term" enum="MetaPlatformSDK.OfferTerm" default="0">
19+
The term of the trial offer.
20+
</member>
21+
<member name="trial_type" type="int" setter="" getter="get_trial_type" enum="MetaPlatformSDK.OfferType" default="0">
22+
The type of trial.
23+
</member>
24+
</members>
25+
</class>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_TrialOfferArray" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
An array of trial offers.
5+
</brief_description>
6+
<description>
7+
An array of [MetaPlatformSDK_TrialOffer]s.
8+
[b]NOTE:[/b] This isn't a Godot [Array], but you can loop over it using [code]for x in arr[/code] just like a Godot [Array].
9+
</description>
10+
<tutorials>
11+
</tutorials>
12+
<methods>
13+
<method name="get_element" qualifiers="const">
14+
<return type="MetaPlatformSDK_TrialOffer" />
15+
<param index="0" name="index" type="int" />
16+
<description>
17+
Returns an element in the array by index.
18+
</description>
19+
</method>
20+
<method name="size" qualifiers="const">
21+
<return type="int" />
22+
<description>
23+
Returns the size of the array.
24+
</description>
25+
</method>
26+
</methods>
27+
</class>

0 commit comments

Comments
 (0)