Package com.twilio.video
Interface RemoteDataTrack.Listener
-
- Enclosing class:
- RemoteDataTrack
public static interface RemoteDataTrack.Listener
Interface that providesRemoteDataTrack
events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onMessage(RemoteDataTrack remoteDataTrack, java.lang.String message)
This method notifies the listener that a string message was received.void
onMessage(RemoteDataTrack remoteDataTrack, java.nio.ByteBuffer messageBuffer)
This method notifies the listener that a binary message was received.
-
-
-
Method Detail
-
onMessage
void onMessage(@NonNull RemoteDataTrack remoteDataTrack, @NonNull java.nio.ByteBuffer messageBuffer)
This method notifies the listener that a binary message was received.- Parameters:
remoteDataTrack
- Remote data track.messageBuffer
- The binary message received.
-
onMessage
void onMessage(@NonNull RemoteDataTrack remoteDataTrack, @NonNull java.lang.String message)
This method notifies the listener that a string message was received.- Parameters:
remoteDataTrack
- Remote data track.message
- The string message received.
-
-