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.
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)
}
In Android Studio, click File > Sync Project with Gradle Files to install the package.
Click Build > Generate App Bundles or APKs > Generate APKs.
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.