Package com.twilio.video
Class RemoteDataTrack
- java.lang.Object
-
- com.twilio.video.DataTrack
-
- com.twilio.video.RemoteDataTrack
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RemoteDataTrack.Listener
Interface that providesRemoteDataTrack
events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSid()
Returns the remote data track's server identifier.void
setListener(RemoteDataTrack.Listener listener)
Set the remote data track listener.-
Methods inherited from class com.twilio.video.DataTrack
getMaxPacketLifeTime, getMaxRetransmits, getName, isEnabled, isOrdered, isReliable
-
-
-
-
Method Detail
-
getSid
@NonNull public java.lang.String getSid()
Returns the remote data track's server identifier. This value uniquely identifies the remote data track within the scope of aRoom
.
-
setListener
public void setListener(@Nullable RemoteDataTrack.Listener listener)
Set the remote data track listener. The thread on which this method is called is the same thread used to notify of received data track messages.- Parameters:
listener
- data track listener
-
-