PersistentChunkQueue

class PersistentChunkQueue(context: Context, deviceId: String) : ChunkQueue

An implementation of ChunkQueue that stores chunks in a persistent database.

Parameters

context

The application context required to create a database.

deviceId

The unique identifier for the device..

Constructors

Link copied to clipboard
constructor(context: Context, deviceId: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val chunks: Flow<List<Chunk>>

A flow emitting all chunks stored in the database for the given device ID.

Functions

Link copied to clipboard
open override fun addChunks(chunks: List<ByteArray>): Boolean
Link copied to clipboard
fun deleteUploaded(): <Error class: unknown class>

Deletes all chunks that have been marked as uploaded.

Link copied to clipboard
open override fun drop(count: Int): <Error class: unknown class>
Link copied to clipboard
open override fun peek(count: Int): List<ByteArray>