package com.contentsquare.rn.csq import com.contentsquare.CSQ import com.contentsquare.rn.utils.ReactNativeUiThreadUtil class CSQPropertyTracking(private val reactNativeUiThreadUtil: ReactNativeUiThreadUtil) { fun addEventProperties(properties: Map) { reactNativeUiThreadUtil.runOnUiThread { CSQ.addEventProperties(properties) } } fun removeEventProperty(name: String) { reactNativeUiThreadUtil.runOnUiThread { CSQ.removeEventProperty(name) } } fun clearEventProperties() { reactNativeUiThreadUtil.runOnUiThread { CSQ.clearEventProperties() } } fun addUserProperties(properties: Map) { reactNativeUiThreadUtil.runOnUiThread { CSQ.addUserProperties(properties) } } }