SentInvitation

open class SentInvitation(    val session: Session,     destination: Contact,     var id: String,     fileInfo: Session.FileInfo,     val data: ByteArray) : BaseSentInvitation

Constructors

Link copied to clipboard
fun SentInvitation(    session: Session,     destination: Contact,     id: String,     fileInfo: Session.FileInfo,     data: ByteArray)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cancel()

Cancel the ongoing invitation

Link copied to clipboard
open fun emit(event: String, vararg args: Any): Emitter

Executes each of listeners with the given args.

Link copied to clipboard
fun getStatus(): Invitation.Status

Returns invitation status

Link copied to clipboard
open fun hasListeners(event: String): Boolean

Check if this emitter has listeners for the specified event.

Link copied to clipboard
open fun listeners(event: String): MutableList<Emitter.Listener>

Returns a list of listeners for the specified event.

Link copied to clipboard
open fun off(): Emitter

Removes all registered listeners.

open fun off(event: String): Emitter

Removes all listeners of the specified event.

open fun off(event: String, fn: Emitter.Listener): Emitter

Removes the listener.

Link copied to clipboard
open fun on(event: String, fn: Emitter.Listener): Emitter

Listens on the event.

Link copied to clipboard
open fun once(event: String, fn: Emitter.Listener): Emitter

Adds a one time listener for the event.

Link copied to clipboard
fun setStatus(status: Invitation.Status)

Set invitation status

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val data: ByteArray
Link copied to clipboard
var id: String
Link copied to clipboard
open val session: Session
Link copied to clipboard
var transferFinished: Boolean = false
Link copied to clipboard
var type: String