This type defines the Client main entry point for the Chat feature.
More...
|
ChatSubscription | Subscribable [get] |
|
TPlatformSubscriber | Subscribable [get] |
| Allows scopes to consume fresh data when available.
|
|
This type defines the Client main entry point for the Chat feature.
Related Links
◆ CreateRoom()
Promise< RoomInfo > Beamable.Experimental.Api.Chat.ChatService.CreateRoom |
( |
string |
roomName, |
|
|
bool |
keepSubscribed, |
|
|
List< long > |
players |
|
) |
| |
|
inline |
Creates a new private chat room for the current player, and a set of other players.
- Parameters
-
roomName | A name for the room |
keepSubscribed | When true, the current player will receive messages for the room. |
players | A list of gamertags of other players who will be included in the chat room. |
- Returns
- A Promise containing the newly created RoomInfo
◆ GetMyRooms()
Promise< List< RoomInfo > > Beamable.Experimental.Api.Chat.ChatService.GetMyRooms |
( |
| ) |
|
|
inline |
Get the current player's set of RoomInfo. The player can create a new room using the CreateRoom method.
- Returns
- A Promise containing the player's RoomInfo
◆ LeaveRoom()
Promise< EmptyResponse > Beamable.Experimental.Api.Chat.ChatService.LeaveRoom |
( |
string |
roomId | ) |
|
|
inline |
Remove the current player from a room
- Parameters
-
roomId | The room id to leave |
- Returns
- A Promise representing the network call.
◆ ProfanityAssert()
Promise< EmptyResponse > Beamable.Experimental.Api.Chat.ChatService.ProfanityAssert |
( |
string |
text | ) |
|
|
inline |
Check to see if a piece of text would trigger the Beamable profanity filter.
- Parameters
-
- Returns
- A Promise representing the network call. If the text contains profanity, the promise will fail with a PlatformRequesterException with an error of "ProfanityFilter" and a status of 400.
◆ SendMessage()
Promise< Message > Beamable.Experimental.Api.Chat.ChatService.SendMessage |
( |
string |
roomId, |
|
|
string |
message |
|
) |
| |
|
inline |
Send a message to chat room.
- Parameters
-
roomId | The room id |
message | The message to send to the room |
- Returns
- A Promise containing the sent Message
The documentation for this class was generated from the following file:
- com.beamable/Runtime/Core/Platform/SDK/Chat/ChatService.cs