BaseFileEmitter

open class BaseFileEmitter(    invitation: BaseSentInvitation,     conversationCall: ConversationCall,     dataChannel: DataChannel)

Constructors

Link copied to clipboard
fun BaseFileEmitter(    invitation: BaseSentInvitation,     conversationCall: ConversationCall,     dataChannel: DataChannel)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getNextDataChunk(): ByteArray
Link copied to clipboard
open fun progress()

Emit progress information

Link copied to clipboard
open fun sendChunk()

Send 1 chunk of data

Link copied to clipboard
open fun sendHeader()
Link copied to clipboard
fun sendToDataChannel(data: ByteArray)

fun sendToDataChannel(data: String)

Send data to dataChannel. It might trigger event "onBufferedAmountChange" and make the code reentrant if this event is used

Link copied to clipboard
fun start()
Link copied to clipboard
open fun succeed()

Properties

Link copied to clipboard
var chunkNb: Int = 0
Link copied to clipboard
var chunkSize: Int = 12000
Link copied to clipboard
var content: ByteArray
Link copied to clipboard
var contentType: String
Link copied to clipboard
var currentSize: Int = 0
Link copied to clipboard
var name: String
Link copied to clipboard
var originalDataType: String
Link copied to clipboard
var size: Int = 0
Link copied to clipboard
var startingDate: Date
Link copied to clipboard
var transferFinished: Boolean = false
Link copied to clipboard
var type: String
Link copied to clipboard
var uuid: String

Inheritors

Link copied to clipboard