Functions - User Age Category¶
Related Oculus Platform documentation:
Functions¶
useragecategory_get¶
useragecategory_get()
Retrieves the age group of the current user from Meta.
Returns: A GDOculusPlatformPromise
that will contain a AccountAgeCategory
that lets you know the age group of the current user. The promise will error if the request couldn't be completed.
Enums:
AccountAgeCategory:
Name | Value | Description |
---|---|---|
ACCOUNTAGECATEGORY_UNKNOWN | 0 | Unknown age group. |
ACCOUNTAGECATEGORY_CHILD | 1 | For users between the ages of 10-12 |
ACCOUNTAGECATEGORY_TEEN | 2 | For users between the ages of 13-17 |
ACCOUNTAGECATEGORY_ADULT | 3 | For users between the ages 18 and up |
Example
useragecategory_report¶
useragecategory_report(app_age_category : AppAgeCategory
)
Used to report the app age cateogry to Meta.
Returns: A GDOculusPlatformPromise
that will contain a bool
(true) if the request was successful. The promise will error if the request couldn't be completed.
Enums:
AppAgeCategory:
Name | Value | Description |
---|---|---|
APPAGECATEGORY_CHILD | 1 | The user's age is under 13 years. |
APPAGECATEGORY_NON_CHILD | 2 | The user's age is 13 years or older. |