Package com.twilio.video
Interface DataTrackPublication
- All Superinterfaces:
TrackPublication
- All Known Implementing Classes:
LocalDataTrackPublication
,RemoteDataTrackPublication
A published data track represents a data track that has been shared with a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionLocalDataTrackPublication
andRemoteDataTrackPublication
extendDataTrackPublication
and each interface implements getDataTrack with different nullability behavior.Methods inherited from interface com.twilio.video.TrackPublication
getTrackName, getTrackSid, isTrackEnabled
-
Method Details
-
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:
-