ResumableClient

Represents a resumable client. Can be used to create or continue resumable uploads.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun ResumableClient.continuePreviousFileUploads(): List<ERROR CLASS: Inconsistent type: kotlinx/coroutines/Deferred<io/github/jan/supabase/storage/resumable/ResumableUpload> (parameters.size = 0, arguments.size = 1)>

Reads pending uploads from the cache and creates a new ResumableUpload for each of them. This done in parallel, so you can start the uploads independently.

Link copied to clipboard
abstract suspend fun continuePreviousUploads(channelProducer: suspend (source: String, offset: Long) -> ByteReadChannel): List<Deferred<ResumableUpload>>

Reads pending uploads from the cache and creates a new ResumableUpload for each of them. This done in parallel, so you can start the downloads independently.

Link copied to clipboard
open suspend fun createOrContinueUpload(data: ByteArray, source: String, path: String, options: UploadOptionBuilder.() -> Unit = {}): ResumableUpload
abstract suspend fun createOrContinueUpload(channel: suspend (offset: Long) -> ByteReadChannel, source: String, size: Long, path: String, options: UploadOptionBuilder.() -> Unit = {}): ResumableUpload

Creates a new resumable upload or continues an existing one. If there is an url in the cache for the given Fingerprint, the upload will be continued.

Link copied to clipboard

Creates a new resumable upload or continues an existing one. If there is an url in the cache for the given Fingerprint, the upload will be continued.

suspend fun ResumableClient.createOrContinueUpload(path: String, uri: Uri, options: UploadOptionBuilder.() -> Unit = {}): ResumableUpload

Creates a new upload or continues an existing one from the given uri