Navigation
API > API/Editor > API/Editor/ContentBrowserData
Context for asynchronous item creation (for new items or duplicating existing ones). Data sources will return one of these (hosting a temporary item with any required context) when they want to begin the creation or duplication of an item item. UI involved in this creation flow should call ValidateItem for any name changes, as well as before calling FinalizeItem. Once finalized the temporary item should be replaced with the real one.
| Name | FContentBrowserItemDataTemporaryContext |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItemData.h |
| Include Path | #include "ContentBrowserItemData.h" |
Syntax
class FContentBrowserItemDataTemporaryContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor. Produces a context that is empty (IsValid() will return false). | ContentBrowserItemData.h | ||
| Copy support. | ContentBrowserItemData.h | ||
| Move support. | ContentBrowserItemData.h | ||
FContentBrowserItemDataTemporaryContext
(
FContentBrowserItemData&& InItemData, |
Create a context instance. | ContentBrowserItemData.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnFinalizeItem | TBaseDelegate_ThreeParams< FContentBrowserItemData, const FContentBrowserItemData &, const FString &, FText * > | Delegate used to finalize the creation of the temporary item, and return the real item | ContentBrowserItemData.h |
| FOnValidateItem | TBaseDelegate_ThreeParams< bool, const FContentBrowserItemData &, const FString &, FText * > | Delegate used to validate that the proposed item name is valid | ContentBrowserItemData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ItemData | FContentBrowserItemData | Data representing the temporary item instance | ContentBrowserItemData.h | |
| OnFinalizeItem | FOnFinalizeItem | Delegate used to finalize the creation of the temporary item, and return the real item | ContentBrowserItemData.h | |
| OnValidateItem | FOnValidateItem | Delegate used to validate that the proposed item name is valid (optional) | ContentBrowserItemData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FContentBrowserItemData FinalizeItem
(
const FString& InProposedName, |
Invoke the delegate used to finalize the creation of the temporary item, and return the real item. | ContentBrowserItemData.h | |
const FContentBrowserItemData & GetItemData() |
Get the data representing the temporary item instance. | ContentBrowserItemData.h | |
bool IsValid() |
Check to see whether this context is valid (has been set to a temporary item). | ContentBrowserItemData.h | |
bool ValidateItem
(
const FString& InProposedName, |
Invoke the delegate used to validate that the proposed item name is valid. | ContentBrowserItemData.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ContentBrowserItemData.h | |||
| ContentBrowserItemData.h |