Package 

Class RemoteDataTrack

  • 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.

    • Method Summary

      Modifier and Type Method Description
      String getSid() Returns the remote data track's server identifier.
      synchronized void setListener(@Nullable() RemoteDataTrack.Listener listener) Set the remote data track listener.
      • Methods inherited from class com.twilio.video.DataTrack

        getMaxPacketLifeTime, getMaxRetransmits, getName, isEnabled, isOrdered, isReliable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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