5#include "Channel/Message.h"
6#include "Components/Widget.h"
7#include "CoreMinimal.h"
8#include "Engine/Texture2D.h"
9#include "Message/MessageSide.h"
10#include "UObject/NoExportTypes.h"
12#include "ContextMenuAction.generated.h"
18enum class EContextMenuButtonStyle : uint8
27UCLASS(Abstract, Blueprintable, EditInlineNew)
28class STREAMCHATUI_API UContextMenuAction :
public UObject
33 UPROPERTY(EditAnywhere, Category = Visuals)
35 UPROPERTY(EditAnywhere, Category = Visuals)
36 UTexture2D* IconTexture;
37 UPROPERTY(EditAnywhere, Category = Visuals)
38 EContextMenuButtonStyle Style;
41 void Perform(const
FMessage&, UWidget* OwningWidget);
42 bool ShouldDisplay(EMessageSide, const
FMessage&) const;
45 virtual
void OnPerform(const
FMessage&, UWidget* OwningWidget);
46 virtual
bool OnShouldDisplay(EMessageSide, const
FMessage&) const;
48 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "On Perform"))
49 void OnPerformBlueprint(const
FMessage& Message, UWidget* OwningWidget);
50 UFUNCTION(BlueprintNativeEvent, meta = (DisplayName = "Should Display"))
51 bool OnShouldDisplayBlueprint(EMessageSide Side, const
FMessage& Message) const;
53 UPROPERTY(BlueprintReadOnly, Transient, Category = Stream)
55 UPROPERTY(BlueprintReadOnly, Transient, Category = Stream)
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
Represents a Stream Chat message.
Definition: Message.h:66