DataReceivedEvent class

Data received from RemoteParticipant. Data packets provides the ability to use LiveKit to send/receive arbitrary payloads. When participant is null, use participantIdentity to tell who sent the data. It is empty for data sent from Server API or by a hidden participant. Emitted by Room and RemoteParticipant.

Mixed-in types

Constructors

DataReceivedEvent({required RemoteParticipant? participant, required List<int> data, required String? topic, String participantIdentity = ''})
const

Properties

data → List<int>
final
hashCode → int
The hash code for this object.
no setterinherited
participant → RemoteParticipant?
Sender of the data. This may be null if data is sent from Server API.
final
participantIdentity → String
Identity of the sender. Set even when participant is null, for example when the data arrives before the sender's join is announced or after the sender has left. Empty for data sent from Server API or by a hidden participant.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited