Stream Chat Unreal SDK
Loading...
Searching...
No Matches
ChannelWidget.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Channel/ChatChannel.h"
6#include "Components/Image.h"
7#include "Context/ChannelContextWidget.h"
8#include "CoreMinimal.h"
9#include "StreamWidget.h"
10
11#include "ChannelWidget.generated.h"
12
16UCLASS()
17class STREAMCHATUI_API UChannelWidget final : public UStreamWidget
18{
19 GENERATED_BODY()
20
21public:
22 UChannelWidget();
23 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
24 void Setup(UChatChannel* InChannel);
25
26protected:
27 UPROPERTY(meta = (BindWidget))
28 UChannelContextWidget* OwnedChannelContext;
29 UPROPERTY(meta = (BindWidget))
30 UImage* HeaderDivider;
31
32private:
33 virtual void OnSetup() override;
34 virtual void NativePreConstruct() override;
35
36 UPROPERTY(Transient)
37 UChatChannel* MyChannel;
38};
Provide a reference to a UChatChannel to child widgets.
Definition: ChannelContextWidget.h:21
The client-side representation of a Stream Chat channel.
Definition: ChatChannel.h:74