Unity uClientCore > NameSpaceEvent

NamespaceEvent Class

Extends

org.moock.event.EventObject

Constructor

NamespaceEvent(src, roomID, numClients)

Arguments

src
A reference to the object that generated the event (normally an instance of NameSpace).
roomID
The roomID of the room in the namespace to which the event pertains.
numClients
The number of clients now in the namespace (used with NamespaceListener.onNumClientsInNamespace() only).

Methods

getRoomID() Returns the roomID of the room added, removed, or for which server-side creation or deletion results are being returned.
getNumClients() Returns the number of unique clients now in the rooms in this namespace.

Description

Contains information about a specific NamespaceListener event, such as onAddRoom() or onNumClientsInNamespace(). Passed to all NamespaceListener objects that have registered to receive events via NameSpace.addNamespaceListener().

Documentation Version

1.0.1