Beamable SDK
|
Public Member Functions | |||
PubNubRoom (RoomInfo roomInfo) | |||
override Promise | Sync () | ||
Synchronize the local representation of the room to the server state. More... | |||
override Promise< Message > | SendMessage (string message) | ||
Send a message to this room. More... | |||
override Promise< Room > | Join (OnMessageReceivedDelegate callback=null) | ||
Join this room. After this call is successful, this player should start receiving messages for this room.
| |||
override Promise< Room > | Leave () | ||
Leave this room. After this call is successful, this player no longer receive messages for this room. More... | |||
override Promise< Room > | Forget () | ||
Forget this room. This leaves the room and also removes it from saved rooms so it is no longer known More... | |||
Public Member Functions inherited from Beamable.Experimental.Api.Chat.Room | |||
bool | ContainsMessage (Message message) | ||
void | MessageReceived (Message message) | ||
Adds a new message to this room. Will also invoke the _onMessageReceived callback if one is defined.
| |||
Additional Inherited Members | |||
Public Attributes inherited from Beamable.Experimental.Api.Chat.Room | |||
readonly string | Id | ||
readonly string | Name | ||
readonly bool | KeepSubscribed | ||
readonly List< Message > | Messages | ||
Protected Member Functions inherited from Beamable.Experimental.Api.Chat.Room | |||
Room (string id, string name, bool keepSubscribed, bool filterFromBlocked) | |||
void | MessageSent (Message message) | ||
Adds a new message to this room. This will not invoke the _onMessageReceived callback.
| |||
Properties inherited from Beamable.Experimental.Api.Chat.Room | |||
bool | FilterMessagesFromBlockedPlayers [get, set] | ||
Forget this room. This leaves the room and also removes it from saved rooms so it is no longer known
Reimplemented from Beamable.Experimental.Api.Chat.Room.
|
inlinevirtual |
Join this room. After this call is successful, this player should start receiving messages for this room.
callback | Associated callback when a message is received for this room. |
Reimplemented from Beamable.Experimental.Api.Chat.Room.
Leave this room. After this call is successful, this player no longer receive messages for this room.
Reimplemented from Beamable.Experimental.Api.Chat.Room.
|
inlinevirtual |
Send a message to this room.
message | Content of the message. |
Implements Beamable.Experimental.Api.Chat.Room.
|
inlinevirtual |
Synchronize the local representation of the room to the server state.
Implements Beamable.Experimental.Api.Chat.Room.