Consent package
Updated: Jan 16, 2026
The
Platform SDK Consent Package provides APIs to check the status of different consent types and launch consent flows when required. The package retrieves consent status to determine if users have seen, approved, or declined consent requests, and launches platform consent UI when explicit user agreement is needed.
Different consent statuses are supported including not seen, seen, consented, and withdrawn states. This package enables compliance with privacy regulations and platform policies for features requiring user consent.
Add the following to your project’s ./gradle/libs.versions.toml file:
[libraries]
// Existing lines
consent-kotlin = { module = "com.meta.horizon.platform.sdk:consent-kotlin", version.ref = "horizonPlatformSdk" }
dependencies {
// Existing lines
implementation(libs.consent.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:consent-kotlin
Now you can initialize the Platform SDK and use Consent package functions in your app.