Package com.opentok.android
Interface Session.ConnectionListener
- 
- Enclosing class:
 - Session
 
public static interface Session.ConnectionListenerMonitors when other clients connect and disconnect to the session. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnectionCreated(Session session, Connection connection)Invoked when another client connects to the session.voidonConnectionDestroyed(Session session, Connection connection)Invoked when another client leaves the session. 
 - 
 
- 
- 
Method Detail
- 
onConnectionCreated
void onConnectionCreated(Session session, Connection connection)
Invoked when another client connects to the session. The Connection object represents the client's connection to the session. Note that this method is invoked when other clients connect to the session. When your own client client connects, theSession.SessionListener.onConnected(Session session)method is called.- Parameters:
 session- The session.connection- The new connection in the session.
 
- 
onConnectionDestroyed
void onConnectionDestroyed(Session session, Connection connection)
Invoked when another client leaves the session. The Connection object represents the client's previous connection to the session. When your own client client disconnects, theSession.SessionListener.onDisconnected(Session session)method is called.- Parameters:
 session- The session.connection- The connection that left the session the session.
 
 - 
 
 -