Develop
Develop
Select your platform

User Age Category package

Updated: Dec 3, 2025
The Platform SDK User Age Category Package enables applications to retrieve the age category of users for compliance with age-appropriate content regulations. The package determines if users are in Child, Teenage (13-17), or Adult (18+) age categories, enabling implementation of age-appropriate content filtering and features.
This functionality ensures compliance with regional age regulations including COPPA and GDPR, and is essential for applications with user-generated content or social features. The package helps ensure safe experiences for younger users.

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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon