MessageWithAttachmentContent

interface MessageWithAttachmentContent : MessageContent

Interface for message which can contains an encrypted file.

Properties

Link copied to clipboard
abstract val body: String
Link copied to clipboard
abstract val encryptedFileInfo: EncryptedFileInfo?

Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.

Link copied to clipboard
abstract val mimeType: String?
Link copied to clipboard
abstract val msgType: String
Link copied to clipboard
abstract val newContent: Content?
Link copied to clipboard
abstract val relatesTo: RelationDefaultContent?
Link copied to clipboard
abstract val url: String?

Required if the file is unencrypted. The URL (typically MXC URI) to the image.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun MessageWithAttachmentContent.getFileName(): String
Link copied to clipboard
fun MessageWithAttachmentContent.getFileUrl(): String?

Get the url of the encrypted file or of the file.