ChatMessageDelegate
open class ChatMessageDelegate : LinphoneObjectDelegate
Undocumented
-
Undocumented
Declaration
Swift
public init() -
Call back used to notify participant IMDN state.
Declaration
Swift
open func onParticipantImdnStateChanged(msg: ChatMessage, state: ParticipantImdnState)Parameters
msgLinphoneChatMessage object
stateLinphoneParticipantImdnState
-
File transfer receive callback prototype. This function is called by the core upon an incoming File transfer is started. This function may be call several time for the same file in case of large file.
Declaration
Swift
open func onFileTransferRecv(msg: ChatMessage, content: Content, buffer: Buffer)Parameters
msgLinphoneChatMessage message from which the body is received.
contentLinphoneContent incoming content information
bufferLinphoneBuffer holding the received data. Empty buffer means end of file.
-
File transfer send callback prototype. This function is called by the core when an outgoing file transfer is started. This function is called until size is set to 0.
Declaration
Swift
open func onFileTransferSend(msg: ChatMessage, content: Content, offset: Int, size: Int) -> Buffer?Parameters
msgLinphoneChatMessage message from which the body is received.
contentLinphoneContent outgoing content
offsetthe offset in the file from where to get the data to be sent
sizethe number of bytes expected by the framework
Return Value
A LinphoneBuffer object holding the data written by the application. An empty buffer means end of file.
-
File transfer progress indication callback prototype.
Declaration
Swift
open func onFileTransferProgressIndication(msg: ChatMessage, content: Content, offset: Int, total: Int)Parameters
msgLinphoneChatMessage message from which the body is received.
contentLinphoneContent incoming content information
offsetThe number of bytes sent/received since the beginning of the transfer.
totalThe total number of bytes to be sent/received.
-
Call back used to notify message delivery status.
Declaration
Swift
open func onMsgStateChanged(msg: ChatMessage, state: ChatMessage.State)Parameters
msgLinphoneChatMessage object
ChatMessageDelegate Class Reference