sendImageMessage

fun sendImageMessage(@ObjCName(name = "imageURL") imageUri: RtkUri, onResult: (ChatFileError?) -> Unit)

Sends an image message to everyone.

Parameters

imageUri

The URI of the image to be sent.

onResult

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


fun sendImageMessage(@ObjCName(name = "imageURL") imageUri: RtkUri, peerIds: List<String>, onResult: (ChatFileError?) -> Unit)

Sends an image message to specific participants.

Parameters

imageUri

The URI of the image to be sent.

peerIds

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

onResult

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