API reference
API reference
Select your platform
No SDKs available
No versions available

UserAgeCategory Class

Users are divided into three categories based on their age: -AccountAgeCategory.Ch: Child age group for users between the ages of 10-12 (or applicable age in user's region). -AccountAgeCategory.Tn: Teenage age group for users between the ages of 13-17 (or applicable age in user's region). -AccountAgeCategory.Ad: Adult age group for users ages 18 and up (or applicable age in user's region).

Static Methods

Get ()
Retrieve the user age category for the current user. It can be used in UserAccountAgeCategory::AgeCategory
Signature
static Request<Models.UserAccountAgeCategory> Oculus.Platform.UserAgeCategory.Get()
Report ( age_category )
Report the current user's age category to Meta.
Signature
static Request Oculus.Platform.UserAgeCategory.Report(AppAgeCategory age_category)
Parameters
age_category: AppAgeCategory  Age category for developers to send to Meta. There are two members, children age group (AppAgeCategory.Ch) and non-children age group (AppAgeCategory.Nch).
Returns
Request