-
public interface LocalParticipant.ListenerInterface that provides LocalParticipant events.
-
-
Method Summary
Modifier and Type Method Description abstract voidonAudioTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalAudioTrackPublication localAudioTrackPublication)This method notifies the listener that a LocalAudioTrack has been shared to a Room. abstract voidonAudioTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalAudioTrack localAudioTrack, @NonNull() TwilioException twilioException)This method notifies the listener that the LocalParticipant failed to publish a LocalAudioTrack to a Room. abstract voidonVideoTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalVideoTrackPublication localVideoTrackPublication)This method notifies the listener that a LocalVideoTrack has been shared to a Room. abstract voidonVideoTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalVideoTrack localVideoTrack, @NonNull() TwilioException twilioException)This method notifies the listener that the LocalParticipant failed to publish a LocalVideoTrack to a Room. abstract voidonDataTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalDataTrackPublication localDataTrackPublication)This method notifies the listener that a LocalDataTrack has been shared to a Room. abstract voidonDataTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalDataTrack localDataTrack, @NonNull() TwilioException twilioException)This method notifies the listener that the LocalParticipant failed to publish a LocalDataTrack to a Room. voidonNetworkQualityLevelChanged(@NonNull() LocalParticipant localParticipant, @NonNull() NetworkQualityLevel networkQualityLevel)This method notifies the listener that the LocalParticipant's has changed. -
-
Method Detail
-
onAudioTrackPublished
abstract void onAudioTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalAudioTrackPublication localAudioTrackPublication)
This method notifies the listener that a LocalAudioTrack has been shared to a Room. Note: If a LocalAudioTrack was provided in ConnectOptions this callback will not be triggered because the track is published prior to being raised.
- Parameters:
localParticipant- The local participant that published the audio track.localAudioTrackPublication- The published local audio track.
-
onAudioTrackPublicationFailed
abstract void onAudioTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalAudioTrack localAudioTrack, @NonNull() TwilioException twilioException)
This method notifies the listener that the LocalParticipant failed to publish a LocalAudioTrack to a Room.
- Parameters:
localParticipant- The local participant that failed to publish the audio track.localAudioTrack- The local audio track that could not be published.twilioException- An exception explaining why the local participant failed topublish the local audio track.
-
onVideoTrackPublished
abstract void onVideoTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalVideoTrackPublication localVideoTrackPublication)
This method notifies the listener that a LocalVideoTrack has been shared to a Room. Note: If a LocalVideoTrack was provided in ConnectOptions this callback will not be triggered because the track is published prior to being raised.
- Parameters:
localParticipant- The local participant that published the video track.localVideoTrackPublication- The published local video track.
-
onVideoTrackPublicationFailed
abstract void onVideoTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalVideoTrack localVideoTrack, @NonNull() TwilioException twilioException)
This method notifies the listener that the LocalParticipant failed to publish a LocalVideoTrack to a Room.
- Parameters:
localParticipant- The local participant that failed to publish the video track.localVideoTrack- The local video track that could not be published.twilioException- An exception explaining why the local participant failed topublish the local video track.
-
onDataTrackPublished
abstract void onDataTrackPublished(@NonNull() LocalParticipant localParticipant, @NonNull() LocalDataTrackPublication localDataTrackPublication)
This method notifies the listener that a LocalDataTrack has been shared to a Room. Please note that in P2P and GO rooms, this method will not get invoked.
- Parameters:
localParticipant- The local participant that published the data track.localDataTrackPublication- The published local data track.
-
onDataTrackPublicationFailed
abstract void onDataTrackPublicationFailed(@NonNull() LocalParticipant localParticipant, @NonNull() LocalDataTrack localDataTrack, @NonNull() TwilioException twilioException)
This method notifies the listener that the LocalParticipant failed to publish a LocalDataTrack to a Room. Please note that in P2P and GO rooms, thismethod will not get invoked.
- Parameters:
localParticipant- The local participant that failed to publish the data track.localDataTrack- The local data track that could not be published.twilioException- An exception explaining why the local participant failed topublish the local data track.
-
onNetworkQualityLevelChanged
void onNetworkQualityLevelChanged(@NonNull() LocalParticipant localParticipant, @NonNull() NetworkQualityLevel networkQualityLevel)
This method notifies the listener that the LocalParticipant's has changed.
- Parameters:
localParticipant- The LocalParticipant.networkQualityLevel- The new NetworkQualityLevel.
-
-
-
-