Develop

User Age Category package

Updated: Sep 4, 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.

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. They need backend access. If that access is unavailable, they return an error.