PendingAttachment

A staged attachment and its upload.

Properties

Link copied to clipboard

Whether the current object has been destroyed and its reference is gone in the Rust side.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun localPath(): String

The path of the attachment's plaintext file.

Link copied to clipboard
open override fun remoteAttachment(): RemoteAttachment

The remote attachment to send. It is complete before the upload.

Link copied to clipboard
open suspend override fun status(): PendingAttachmentStatus
Link copied to clipboard
open suspend override fun upload()

Upload the staged ciphertext. Concurrent calls share one upload. A failed upload stays failed until the app calls upload again; after a backend_rejected failure, upload fails again without a request.