send File Message
fun sendFileMessage(@ObjCName(name = "fileURL" ) fileUri: RtkUri, onResult: (ChatFileError?) -> Unit)
Sends a file message to everyone.
Parameters
file Uri
The URI of the file to be sent.
on Result
A callback that returns a ChatFileError if the operation is not successful, otherwise null.
fun sendFileMessage(@ObjCName(name = "fileURL" ) fileUri: RtkUri, peerIds: List<String>, onResult: (ChatFileError?) -> Unit)
Sends a file message to specific participants.
Parameters
file Uri
The URI of the file to be sent.
peer Ids
The list of peer IDs to whom the file should be sent.
on Result
A callback that returns a ChatFileError if the operation is not successful, otherwise null.