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

OVR_Requests_UserAgeCategory.h File

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

Functions

Retrieve the user age category for the current user. It can be used in ovr_UserAccountAgeCategory_GetAgeCategory()A message with type ovrMessage_UserAgeCategory_Get will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrUserAccountAgeCategoryHandle. Extract the payload from the message handle with ovr_Message_GetUserAccountAgeCategory().
Report the current user's age category to Meta.
Parameters
age_category
Age category for developers to send to Meta. There are two members, children age group (ovrAppAgeCategory_Ch()) and non-children age group (ovrAppAgeCategory_Nch()).
A message with type ovrMessage_UserAgeCategory_Report will be generated in response.First call ovr_Message_IsError() to check if an error occurred.This response has no payload. If no error occurred, the request was successful. Yay!
Did you find this page helpful?
Thumbs up icon
Thumbs down icon