-
- All Implemented Interfaces:
-
com.twilio.video.Track
public class RemoteDataTrack extends DataTrack
A remote data track represents a unidirectional remote data source from which messages can be received from a participant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRemoteDataTrack.ListenerInterface that provides RemoteDataTrack events.
-
Field Summary
Fields Modifier and Type Field Description private final Stringsidprivate RemoteDataTrack.Listenerlistener
-
Method Summary
Modifier and Type Method Description StringgetSid()Returns the remote data track's server identifier. synchronized voidsetListener(@Nullable() RemoteDataTrack.Listener listener)Set the remote data track listener. -
-
Method Detail
-
getSid
@NonNull() String getSid()
Returns the remote data track's server identifier. This value uniquely identifies the remotedata track within the scope of a Room.
-
setListener
synchronized void setListener(@Nullable() RemoteDataTrack.Listener listener)
Set the remote data track listener. The thread on which this method is called is the samethread used to notify of received data track messages.
- Parameters:
listener- data track listener
-
-
-
-