DataWriter - DataDog/dd-sdk-android GitHub Wiki

interface DataWriter<T>

Interface to be implemented by the class which wants to write arbitrary data with the given EventBatchWriter.

Functions

write

@WorkerThread

abstract fun write(writer: EventBatchWriter, element: T, eventType: EventType): Boolean

Writes the element with a given EventBatchWriter.

Return

true if element was written, false otherwise.

Parameters
writer the writer to use
element the event to write
eventType additional info about the event