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
msg
LinphoneChatMessage object
state
LinphoneParticipantImdnState
-
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
msg
LinphoneChatMessage message from which the body is received.
content
LinphoneContent incoming content information
buffer
LinphoneBuffer 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
msg
LinphoneChatMessage message from which the body is received.
content
LinphoneContent outgoing content
offset
the offset in the file from where to get the data to be sent
size
the 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
msg
LinphoneChatMessage message from which the body is received.
content
LinphoneContent incoming content information
offset
The number of bytes sent/received since the beginning of the transfer.
total
The 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
msg
LinphoneChatMessage object