DataReceived

constructor(room: Room, data: ByteArray, participant: RemoteParticipant?, topic: String?, encryptionType: <Error class: unknown class>)

Retains the pre-participantIdentity JVM constructor signature, so modules compiled against an earlier SDK keep linking. A Kotlin default argument alone would not: it emits the full-arity constructor plus a synthetic one, and the old five-argument signature would disappear.


constructor(room: Room, data: ByteArray, participant: RemoteParticipant?, topic: String?, encryptionType: <Error class: unknown class>, participantIdentity: String = "")

Parameters

data

the published data

participant

the participant if available