Unity uClientCore > RoomManagerListener |
onAddNamespace(e) | Occurs when a namespace is added to the RoomManager. |
onCreateNamespaceResults(e) | Occurs when a namespace creation attempt completes. |
onCreateRoomResults(e) | Occurs when a room creation attempt completes. Note that if the namespace in which the room was created is being observed, then NameSpace.onAddRoom() will fire for the room before onCreateRoomResults() fires. |
onJoinNonExistentRoom(e) | Occurs when the client attempts to join a room that doesn't exist on the server. |
onNamespaceList(e) | Occurs when the list of namespaces on the server arrives, in response to an earlier call to RoomManager.getNamespaceListFromServer(). |
onObserveNamespaceResults(e) | Occurs when a namespace observation attempt completes. Results of the attempt are available via e.getStatus() within the body of the onObserveNamespaceResults() method. Possible status values are: SUCCESS, NOT_FOUND, and ALREADY_OBSERVING_NAMESPACE. |
onRemoveNamespace(e) | Occurs when a namespace is removed from the RoomManager. |
onRemoveNamespaceResults(e) | Occurs when a namespace removal attempt completes. |
onRemoveRoomResults(e) | Occurs when a room removal attempt completes. |
onStopObservingNamespaceResults(e) | Occurs when a namespace observation cancellation attempt completes. Results of the attempt are available via e.getStatus() within the body of the onStopObservingNamespaceResults() method. Possible status values are: SUCCESS, NOT_FOUND, and NOT_OBSERVING_NAMESPACE. |
The RoomManagerListener interface's methods correspond to specific RoomManager events. Classes wishing to process RoomManager events implement this interface. An instance of an implementing class must register to receive event notifications from a specific RoomManager instance with the RoomManager.addRoomManagerListener() method. When a RoomManager event occurs, the RoomManager instance invokes the appropriate RoomManagerListener method on all registered listeners. Information about the event is passed to the method in a RoomManagerEvent object.
By default, UClient implements the RoomManagerListener interface, providing log information for each event. To customize the behaviour of a RoomManagerListener method in a UClient subclass, simply override the desired method.
1.0.5