send Media
abstract fun sendMedia( attachment: ContentAttachmentData, compressBeforeSending: Boolean, roomIds: Set<String>, rootThreadEventId: String? = null, relatesTo: RelationDefaultContent? = null, additionalContent: Content? = null): Cancelable
Content copied to clipboard
Method to send a media asynchronously.
Return
Parameters
attachment
the media to send
compress Before Sending
set to true to compress images before sending them
room Ids
set of roomIds to where the media will be sent. The current roomId will be add to this set if not present. It can be useful to send media to multiple room. It's safe to include the current roomId in this set
root Thread Event Id
when this param is not null, the Media will be sent in this specific thread
relates To
add a relation content to the media event
additional Content
additional content to put in the event content