EventBatchWriter - DataDog/dd-sdk-android GitHub Wiki
interface EventBatchWriter
Writer allowing FeatureScope to write events in the storage exposing current batch metadata.
Functions
currentMetadata
abstract fun currentMetadata(): ByteArray?
Return
the metadata of the current writeable batch
write
abstract fun write(event: RawBatchEvent, batchMetadata: ByteArray?, eventType: EventType): Boolean
Writes the content of the event to the current available batch.
Return
true if event was written, false otherwise.
Parameters
event | the event to write (content + metadata) |
batchMetadata | the optional updated batch metadata |
eventType | additional information about the event data |