Stream Chat Unreal SDK
Loading...
Searching...
No Matches
TypingIndicatorWidget.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Blueprint/UserWidget.h"
6#include "Components/TextBlock.h"
7#include "CoreMinimal.h"
8#include "User/UserRef.h"
9
10#include "TypingIndicatorWidget.generated.h"
11
18UCLASS()
19class STREAMCHATUI_API UTypingIndicatorWidget final : public UUserWidget
20{
21 GENERATED_BODY()
22
23public:
24 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
25 void AddUser(const FUserRef& User);
27 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
28 bool RemoveUser(const FUserRef& User);
29
30protected:
31 UPROPERTY(meta = (BindWidget))
32 UTextBlock* TextBlock;
33
34 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Setup)
35 TArray<FUserRef> Users;
36
37private:
38 void UpdateLabel() const;
39 FText GetLabel() const;
40};
Displays typing status for multiple users.
Definition: TypingIndicatorWidget.h:20
A reference to a unique User.
Definition: UserRef.h:23