|
Stream Chat Unreal SDK
|
Provide a reference to a UChatChannel to child widgets. More...
#include <ChannelContextWidget.h>
Public Member Functions | |
| void | Setup (UChatChannel *InChannel) |
| UChatChannel * | GetChannel () const |
| void | OpenThread (const FMessage &ParentMessage) |
| Open the thread hanging off the given message. | |
| void | CloseThread () |
| Leave the open thread and go back to the channel. Does nothing if no thread is open. | |
| bool | IsThreadOpen () const |
| const FMessage & | GetThreadParentMessage () const |
| The message whose thread is open. Only meaningful while IsThreadOpen(). | |
Static Public Member Functions | |
| static UChannelContextWidget * | Get (const UWidget *Widget) |
| static UChannelContextWidget * | TryGet (const UWidget *Widget) |
| static UChatChannel * | GetChannel (const UWidget *Widget) |
| static UChatChannel * | TryGetChannel (const UWidget *Widget) |
Public Attributes | |
| FStartEditMessageDelegate | OnStartEditMessage |
| FThreadChangedDelegate | OnThreadChanged |
| Fired when a thread is opened or closed, so the message list, composer and header can follow. | |
Provide a reference to a UChatChannel to child widgets.
A widget that can be initialized with a ChatChannel in order to conveniently provide children with access to said channel as well as channel-related UI delegates
| void UChannelContextWidget::OpenThread | ( | const FMessage & | ParentMessage | ) |
Open the thread hanging off the given message.
The message list switches to the thread's replies and the composer starts sending into it. Also fetches the thread's replies, since channel state does not carry them.