Navigation
API > API/Plugins > API/Plugins/Party > API/Plugins/Party/Chat
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USocialChatManager
References
| Module | Party |
| Header | /Engine/Plugins/Online/OnlineFramework/Source/Party/Public/Chat/SocialChatManager.h |
| Include | #include "Chat/SocialChatManager.h" |
Syntax
UCLASS (Within=SocialToolkit, Config=Game)
class USocialChatManager : public UObject
Remarks
The chat manager is a fully passive construct that watches for creation of chat rooms and message activity therein
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableChatSlashCommands | ||
| TMap< ESocialChannelType, TWeakObjectPtr< USocialChatChannel > > | ChannelsByType | ||
| TMap< FString, TObjectPtr< USocialChatRoom > > | ChatRoomsById | ||
| TMap< TWeakObjectPtr< USocialUser >, TObjectPtr< USocialPrivateMessageChannel > > | DirectChannelsByTargetUser | ||
| TMap< FUniqueNetIdRepl, TObjectPtr< USocialGroupChannel > > | GroupChannels | ||
| FOnChatChannelCreated | OnChannelCreatedEvent | ||
| FOnChatChannelDisplayRequested | OnChannelDisplayRequestedEvent | ||
| FOnChatChannelFocusRequested | OnChannelFocusRequestedEvent | ||
| FOnChatChannelLeft | OnChannelLeftEvent | ||
| TMap< FString, TObjectPtr< USocialReadOnlyChatChannel > > | ReadOnlyChannelsByDisplayName |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| USocialChatChannel * | CreateChatChannel
(
FSocialChatChannelConfig& InConfig |
||
| USocialChatChannel & | CreateChatChannel
(
USocialUser& InRecipient |
TODO - Deubanks - Move to Protected here (public version in UFortChatManager once it exists) | |
| USocialChatManager * | CreateChatManager
(
USocialToolkit& InOwnerToolkit |
||
| void | DisplayChatChannel
(
USocialChatChannel& InChannel |
||
| void | ExitChatRoom
(
const FChatRoomId& RoomId, |
||
| USocialChatChannel & | FindOrCreateChannel
(
const FText& DisplayName |
||
| USocialChatChannel & | FindOrCreateChannel
(
USocialUser& SocialUser |
||
| USocialGroupChannel & | FindOrCreateGroupChannel
(
IOnlineGroupsPtr InGroupInterface, |
||
| USocialChatRoom & | FindOrCreateRoom
(
const FChatRoomId& RoomId |
||
| void | FocusChatChannel
(
USocialUser& InChannelUser |
||
| void | FocusChatChannel
(
USocialChatChannel& InChannel |
||
| USocialChatRoom * | GetChatRoom
(
const FChatRoomId& ChannelId |
||
| USocialChatChannel * | GetChatRoomForType
(
ESocialChannelType Key |
||
| TSubclassOf< USocialChatRoom > | GetClassForChatRoom
(
ESocialChannelType Type |
||
| TSubclassOf< USocialGroupChannel > | |||
| TSubclassOf< USocialChatChannel > | |||
| TSubclassOf< USocialChatChannel > | |||
| void | GetGroupChannels
(
TArray< USocialGroupChannel* >& JoinedChannels |
||
| void | GetJoinedChannels
(
TArray< USocialChatChannel* >& JoinedChannels |
||
| IOnlineChatPtr | GetOnlineChatInterface
(
ESocialSubsystem InSocialSubsystem |
END KIAROS GROUP MANAGEMENT. | |
| IOnlineGroupsPtr | GetOnlineGroupInterface
(
ESocialSubsystem InSocialSubsystem |
||
| USocialToolkit & | |||
| void | HandleChatPrivateMessageReceived
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatPrivateMessageSent
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomConfigured
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomConfiguredFailure
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomCreated
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomCreatedFailure
(
const FUniqueNetId& LocalUserId, |
Failure handlers (called by HandleXXX functions above) | |
| void | HandleChatRoomExit
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomExitFailure
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomJoinPrivate
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomJoinPrivateFailure
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomJoinPublic
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomJoinPublicFailure
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomMemberExit
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomMemberJoin
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomMemberUpdate
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomMessageReceived
(
const FUniqueNetId& LocalUserId, |
||
| void | HandleChatRoomMessageSent
(
const FUniqueNetId& LocalUserId, |
||
| void | |||
| void | DECLARE_EVENT_OneParam(USocialChatManager, FOnChatChannelFocusRequested, USocialChatChannel&); FOnChatChannelFocusRequested& OnGroupsChanged() const { return OnChannelFocusRequestedEvent; } | ||
| bool | |||
| bool | IsUniqueIdOfOwner
(
const FUniqueNetId& LocalUserId |
||
| void | JoinChatRoomPrivate
(
const FChatRoomId& RoomId, |
||
| void | JoinChatRoomPublic
(
const FChatRoomId& RoomId, |
Void SendDirectMessage(const ISocialUserRef& InRecipient, const FString& InMessage); void SendMessage(const USocialChatChannel& Channel, const FString& InMessage); virtual bool SendMessage(const FString& InChannelName, const FString& InMessage) override; virtual bool SendMessage(const ISocialUserRef& InRecipient, const FString& InMessage) override; | |
| void | LocalUserInitialized
(
USocialUser& LocalUser |
||
| FOnChatChannelCreated & | |||
| void | OnChannelCreatedInternal
(
USocialChatChannel& CreatedChannel |
||
| FOnChatChannelDisplayRequested & | |||
| FOnChatChannelFocusRequested & | |||
| FOnChatChannelLeft & | |||
| void | OnChannelLeftInternal
(
USocialChatChannel& ChannelLeft |
||
| void | OnGroupUpdated
(
const FUniqueNetId& GroupId |
||
| void | RefreshGroupsRequestCompleted
(
FGroupsResult Result |
||
| ESocialChannelType | TryChannelTypeLookupByRoomId
(
const FChatRoomId& RoomID |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnChatChannelCreated | |||
| FOnChatChannelDisplayRequested | |||
| FOnChatChannelFocusRequested | |||
| FOnChatChannelLeft |