public interface RoomVariable extends UserVariable
| Modifier and Type | Method and Description |
|---|---|
User |
getOwner()
Return the User that created the variable.
|
boolean |
isGlobal()
Checks if a RoomVariable is global
|
boolean |
isPersistent()
Checks if a RoomVariable is persistent
|
void |
setGlobal(boolean flag)
When a RoomVariable is set to global all changes will be broadcast not only to the Users in the Room
but also to all other Users in the same Room Group
|
void |
setOwner(User user)
Sets the creator of a variable.
|
void |
setPersistent(boolean flag)
When a RoomVariable is set to persistent the variable will not be removed from a Room when the user
leaves it.
|
isHidden, isPrivate, isStorable, setHidden, setNull, setPrivate, setStorablegetBoolValue, getDoubleValue, getIntValue, getName, getSFSArrayValue, getSFSObjectValue, getStringValue, getType, getValue, isNull, toSFSArrayboolean isPersistent()
setPersistent(boolean)boolean isGlobal()
setGlobal(boolean)void setPersistent(boolean flag)
flag - void setGlobal(boolean flag)
flag - User getOwner()
void setOwner(User user)
user -