Class RoomEvents

java.lang.Object
sfs3.client.requests.RoomEvents

public class RoomEvents extends Object
The RoomEvents class contains a specific subset of the RoomSettings required to create a Room. It defines which events related to the Room will be fired by the SmartFox client.
See Also:
  • Constructor Details

    • RoomEvents

      public RoomEvents()
      Creates a new RoomEvents instance. The RoomSettings.events property must be set to this instance during Room creation.
      See Also:
  • Method Details

    • getAllowUserEnter

      public boolean getAllowUserEnter()
      Indicates whether the userEnterRoom event should be dispatched whenever a user joins the Room or not.

      The default value is false

      See Also:
    • setAllowUserEnter

      public void setAllowUserEnter(boolean allowUserEnter)
      See Also:
    • getAllowUserExit

      public boolean getAllowUserExit()
      Indicates whether the userExitRoom event should be dispatched whenever a user leaves the Room or not.

      The default value is false

      See Also:
    • setAllowUserExit

      public void setAllowUserExit(boolean allowUserExit)
      See Also:
    • getAllowUserCountChange

      public boolean getAllowUserCountChange()
      Indicates whether or not the userCountChange event should be dispatched whenever the users (or players+spectators) count changes in the Room.

      The default value is false

      See Also:
    • setAllowUserCountChange

      public void setAllowUserCountChange(boolean allowUserCountChange)
      See Also:
    • getAllowUserVariablesUpdate

      public boolean getAllowUserVariablesUpdate()
      Indicates whether or not the userVariablesUpdate event should be dispatched whenever a user in the Room updates his User Variables.

      The default value is false

      See Also:
    • setAllowUserVariablesUpdate

      public void setAllowUserVariablesUpdate(boolean allowUserVariablesUpdate)
      See Also: