addMedia

abstract fun addMedia(inputStream: InputStream, contentType: String, filename: String, uploadListener: MediaUploadListener): Conversation.MessageBuilder

Adds attachment for the new message.

Return

Self for chaining.

Parameters

inputStream

content of attachment.

contentType

type of the attachment.

filename

name of the attachment.

uploadListener

MediaUploadListener for monitoring upload process.