in Confidence/src/main/java/com/spotify/confidence/EventSender.kt [9:36]
fun track(
eventName: String,
data: ConfidenceFieldsType = mapOf()
)
/**
* Track Android-specific events like activities or Track Context updates.
* Please note that this method is collecting data in a coroutine scope and will be
* executed on the dispatcher that was defined with the creation of the Confidence instance.
*
* @param producer a producer that produces the events or context updates.
*/
fun track(producer: Producer)
/**
* Safely stop a Confidence instance
*/
fun stop()
/**
* Manually flush events from storage.
*/
fun flush()
override fun withContext(context: Map<String, ConfidenceValue>): EventSender
}
internal interface FlushPolicy {