Package com.twilio.video
Interface DataTrackPublication
-
- All Superinterfaces:
TrackPublication
- All Known Implementing Classes:
LocalDataTrackPublication
,RemoteDataTrackPublication
public interface DataTrackPublication extends TrackPublication
A published data track represents a data track that has been shared with aRoom
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataTrack
getDataTrack()
LocalDataTrackPublication
andRemoteDataTrackPublication
extendDataTrackPublication
and each interface implements getDataTrack with different nullability behavior.-
Methods inherited from interface com.twilio.video.TrackPublication
getTrackName, getTrackSid, isTrackEnabled
-
-
-
-
Method Detail
-
getDataTrack
@Nullable DataTrack getDataTrack()
LocalDataTrackPublication
andRemoteDataTrackPublication
extendDataTrackPublication
and each interface implements getDataTrack with different nullability behavior.LocalDataTrackPublication.getDataTrack()
is annotated as @NonNull andRemoteDataTrackPublication.getDataTrack()
is annotated as @Nullable.This method is marked as @Nullable because at least one of the subclasses returns null.
- Returns:
- the published data track.
- See Also:
LocalDataTrackPublication
,RemoteDataTrackPublication
-
-