5#include "CoreMinimal.h"
46 using FOnPicked = TFunction<void(
const TOptional<FPickedAttachment>&)>;
53 static void ClearProvider();
54 static bool HasProvider();
Supplies the message composer with a way to pick a file to attach.
Definition AttachmentPicker.h:42
TFunction< void(FOnPicked)> FProvider
Shows a picker and reports back what the user chose.
Definition AttachmentPicker.h:49
TFunction< void(const TOptional< FPickedAttachment > &)> FOnPicked
Definition AttachmentPicker.h:46
A file the app picked, ready to be uploaded and attached to a message.
Definition AttachmentPicker.h:12
FString FileName
Original filename, shown to recipients and used by the backend to infer the MIME type.
Definition AttachmentPicker.h:14
TArray< uint8 > Content
Raw bytes of the file.
Definition AttachmentPicker.h:17
bool bIsImage
Upload through the image endpoint, so recipients get a thumbnail and render it inline.
Definition AttachmentPicker.h:20