Stream Chat Unreal SDK
Loading...
Searching...
No Matches
TeamChatMobileWidget.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Channel/ChannelWidget.h"
6#include "ChannelList/ChannelListWidget.h"
7#include "Components/Border.h"
8#include "Context/ClientContextWidget.h"
9#include "CoreMinimal.h"
10#include "StreamWidget.h"
11
12#include "TeamChatMobileWidget.generated.h"
13
17UCLASS()
18class STREAMCHATUI_API UTeamChatMobileWidget final : public UStreamWidget
19{
20 GENERATED_BODY()
21
22public:
23 UTeamChatMobileWidget();
24 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
25 void Setup(UStreamChatClientComponent* InClient);
26
27protected:
28 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
29 void SwitchToChannelList();
30 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
31 void SwitchToMessageList(UChatChannel* SelectedChannel);
32
33 UPROPERTY(meta = (BindWidget))
34 UClientContextWidget* ClientContextWidget;
35 UPROPERTY(meta = (BindWidget))
36 UBorder* Container;
37
38 UPROPERTY(EditAnywhere, NoClear, Category = Defaults)
39 TSubclassOf<UChannelListWidget> ChannelListWidgetClass = UChannelListWidget::StaticClass();
40 UPROPERTY(EditAnywhere, NoClear, Category = Defaults)
41 TSubclassOf<UChannelWidget> ChannelWidgetClass = UChannelWidget::StaticClass();
42
43private:
44 virtual void OnSetup() override;
45 virtual void NativePreConstruct() override;
46
47 UFUNCTION()
48 void ChannelSelected(UChatChannel* SelectedChannel);
49};
The client-side representation of a Stream Chat channel.
Definition: ChatChannel.h:74
A component which allows for connecting to the Stream Chat API. Should be added to a client-side acto...
Definition: StreamChatClientComponent.h:42