Develop

User Age Category package

Updated: Oct 14, 2026
The Platform SDK User Age Category Package lets your application retrieve a user’s age category, so it can tailor content and features accordingly. The categories are Child, Teenage (13-17), and Adult (18+).
The package returns a category; it does not itself make an application compliant. Use it as one input when building age-appropriate behavior for regimes such as COPPA and GDPR. The obligations remain the developer’s. It matters most for applications with user-generated content or social features.
This is a Platform SDK feature requiring Data Use Checkup
To use this feature, you must complete a Data Use Checkup (DUC). The DUC ensures that you comply with Developer Policies. It requires an administrator from your team to certify that your use of user data aligns with platform guidelines. During development, a DUC you submit is approved automatically and gives your app provisional access. Submitting the app for review or enabling higher release channel limits permanently ends automatic approval, but features you already have keep working while their review runs (see When to submit a DUC). Test users can call these features before DUC approval, except getting the logged-in user, which needs the User ID or User Profile grant.

Before you begin

How to install

  1. Add the following to your project’s ./gradle/libs.versions.toml file:
     [libraries]
     # Existing lines
     user-age-category-kotlin = { module = "com.meta.horizon.platform.sdk:user-age-category-kotlin", version.ref = "horizonPlatformSdk" }
    
     dependencies {
         // Existing lines
         implementation(libs.user.age.category.kotlin)
     }
    
  2. In Android Studio, click File > Sync Project with Gradle Files to install the package.
  3. Click Build > Generate App Bundles or APKs > Generate APKs.
  4. In the “External Libraries” section of your project, confirm that these packages are listed.
     com.meta.horizon.platform.sdk:core-kotlin
     com.meta.horizon.platform.sdk:user-age-category-kotlin
    
    Now you can initialize the Platform SDK and use User Age Category package functions in your app.

API reference

See the exact requests and responses in the Platform SDK User Age Category Package.

Test this on Meta Spatial Simulator

Test these APIs on Meta Spatial Simulator without a physical device. Sign in to the simulator first. When signed in, these APIs call the Meta backend and return real responses. When signed out, they return an authentication error rather than sample data.