> For the complete documentation index, see [llms.txt](https://documentation.sceenic.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/android-reference-new/sessionlistener.md).

# SessionListener

* The Interface SessionListener monitors all the events from the Session.
* The SessionListener is created together with the Session instance.

## Public Method Summary

Public Method Summary

| Type | Methods                                                                                                                                                                                                               | Parameters                                                                                                                                                                                                                                 |
| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| void | <p>onConnected(List\<Participant> participants)</p><p>Connect to session</p>                                                                                                                                          | <ul><li><strong>participants</strong> - List of participants in the Session</li></ul>                                                                                                                                                      |
| void | <p>onDisconnected() -<br>Session is disconnected</p>                                                                                                                                                                  | <p><br></p>                                                                                                                                                                                                                                |
| void | <p>onError(SessionError error)  - <br>Receive error message</p>                                                                                                                                                       | <ul><li><strong>error</strong> -Detailed error information</li></ul>                                                                                                                                                                       |
| void | <p>onLocalParticipantJoined(final Participant participant) -</p><p>local participant is connected to session</p>                                                                                                      | <ul><li><strong>participant</strong> - Participant object representing the local device and media stream with audio and video tracks inside</li></ul>                                                                                      |
| void | onRemoteParticipantJoined(final Participant participant) -                                                                                                                                                            | <ul><li><strong>participant</strong> - Participant object representing a remote device and media stream with audio and video tracks inside</li></ul>                                                                                       |
| void | onUpdateParticipant(String participantId, Participant participant)                                                                                                                                                    | <ul><li><strong>participantId</strong> - the unique String value of the participant</li><li>participant - Participant object representing a remote device</li></ul>                                                                        |
| void | onRemoteParticipantLeft(final Participant participant)                                                                                                                                                                | <ul><li><strong>participantId</strong> - the unique String value of the participant</li></ul>                                                                                                                                              |
| void | <p>onParticipantMediaStateChanged(final String participantId, final MediaConfiguration.MediaType mediaType, final MediaConfiguration.MediaState mediaState) -</p><p>This method handle participant's media states</p> | <ul><li><strong>participantId</strong> - the unique String value of the participant</li><li><strong>mediaType</strong> - Enum of AUDIO, VIDEO, ALL values</li><li><strong>mediaState</strong> - Enum of ENABLED, DISABLED values</li></ul> |
| void | <p>onMessageReceived(final String participantId, final String message)</p><p>The method is receiving messages from remote participants into the current room</p>                                                      | <ul><li><strong>participantId</strong> - the unique String value of the participant</li><li><strong>message</strong> - receiving string messages</li></ul>                                                                                 |
