sendFileMessage

fun sendFileMessage(@ObjCName(name = "fileURL") fileUri: RtkUri, onResult: (ChatFileError?) -> Unit)

Sends a file message to everyone.

Parameters

fileUri

The URI of the file to be sent.

onResult

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

fileUri

The URI of the file to be sent.

peerIds

The list of peer IDs to whom the file should be sent.

onResult

A callback that returns a ChatFileError if the operation is not successful, otherwise null.