Android

Before you begin

If you haven't already, add Adrop to Android and make sure that Adrop Metrics is enabled in your project

Initialize Adrop

// 1. use Application Context
// 2. true for production
// 3. If you are using this SDK in specific countries, 
//    pass an array of ISO 3166 alpha-2 country codes.
Adrop.initialize(
    application, 
    production = false,
    targetCountries = arrayOf<String>())

Set user properties

You can set properties to describe the users of your app. Check the preset defined for the keys we support. Read more about the AdropMetrics.

val key = "YOUR_PROPERTY_KEY"
val value = "YOUR_PROPERTY_VALUE"
AdropMetrics.setProperty(key, value)

Last updated