com.threerings.presents.client
Interface SessionObserver

All Known Subinterfaces:
ClientObserver
All Known Implementing Classes:
BasicDirector, BureauDirector, ChatDirector, Client.ServerSwitcher, ClientAdapter, LocationDirector, MuteDirector, OccupantDirector, PeerNode, TestClient

public interface SessionObserver

A session observer is registered with the client instance to be notified when the client establishes and ends their session with the server.

See Also:
ClientObserver

Method Summary
 void clientDidLogoff(Client client)
          Called after the client has been logged off of the server and has disconnected.
 void clientDidLogon(Client client)
          Called after the client successfully connected to and authenticated with the server.
 void clientObjectDidChange(Client client)
          For systems that allow switching screen names after logon, this method is called whenever a screen name change takes place to report that the client object has been replaced to potential client-side subscribers.
 void clientWillLogon(Client client)
          Called immediately before a logon is attempted.
 

Method Detail

clientWillLogon

void clientWillLogon(Client client)
Called immediately before a logon is attempted.


clientDidLogon

void clientDidLogon(Client client)
Called after the client successfully connected to and authenticated with the server. The entire object system is up and running by the time this method is called.


clientObjectDidChange

void clientObjectDidChange(Client client)
For systems that allow switching screen names after logon, this method is called whenever a screen name change takes place to report that the client object has been replaced to potential client-side subscribers.


clientDidLogoff

void clientDidLogoff(Client client)
Called after the client has been logged off of the server and has disconnected.