Android 로그이벤트
사전 준비
Adrop 초기화하기
// 1. Application Context를 사용하세요.
// 2. production = true 를 사용하세요.
// 3. 특정 국가에서 이 SDK를 사용하고 있다면,
// ISO 3166 alpha-2 국가 코드 array를 전달하세요.
Adrop.initialize(
application,
production = false,
targetCountries = arrayOf<String>())// 1. Application Context를 사용하세요.
// 2. production = true 를 사용하세요.
// 3. 특정 국가에서 이 SDK를 사용하고 있다면,
// ISO 3166 alpha-2 국가 코드 array를 전달하세요.
boolean production = true;
String[] targetCountries = {};
Adrop.INSTANCE.initialize(getApplication(), production, targetCountries);Log Events
val params = AdropEventParam.Builder()
.putInt("data_key_1", 1)
.putFloat("data_key_2", 1.2)
.putBoolean("data_key_3", true)
.putString("data_key_4", "value_text")
.build()
AdropMetrics.logEvent("event_name", params)AdropEventParam params = new AdropEventParam.Builder()
.putInt("data_key_1", 1)
.putFloat("data_key_2", 1.2)
.putBoolean("data_key_3", true)
.putString("data_key_1", "value_text")
.build();
AdropMetrics.logEvent("event_name", params);Last updated