Stream Chat Unreal SDK
Loading...
Searching...
No Matches
ClientContextWidget.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3// Fill out your copyright notice in the Description page of Project Settings.
4
5#pragma once
6
7#include "ContextWidget.h"
8#include "CoreMinimal.h"
9#include "StreamChatClientComponent.h"
10
11#include "ClientContextWidget.generated.h"
12
16UCLASS()
17class STREAMCHATUI_API UClientContextWidget final : public UContextWidget
18{
19 GENERATED_BODY()
20
21public:
22 UClientContextWidget();
23
24 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
25 void Setup(UStreamChatClientComponent* InClient);
26 static UClientContextWidget* Get(const UWidget* Widget);
27 static UStreamChatClientComponent* GetClient(const UWidget* Widget);
28 UStreamChatClientComponent* GetClient() const;
29
30 void SelectChannel(UChatChannel* Channel);
31
32 // TODO A back stack container widget might one day make sense
33 DECLARE_DYNAMIC_MULTICAST_DELEGATE(FBackDelegate);
34 UPROPERTY(BlueprintAssignable)
35 FBackDelegate OnBack;
36
37 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FChannelSelected, UChatChannel*, Channel);
38 UPROPERTY(BlueprintAssignable)
39 FChannelSelected OnChannelSelected;
40
41 UPROPERTY(BlueprintReadOnly, Transient, Category = "Stream Chat")
42 UChatChannel* SelectedChannel;
43
44private:
45 UPROPERTY(Transient)
47};
The client-side representation of a Stream Chat channel.
Definition ChatChannel.h:75
A component which allows for connecting to the Stream Chat API. Should be added to a client-side acto...
Definition StreamChatClientComponent.h:43