FContentBrowserItemDataTemporaryContext

Context for asynchronous item creation (for new items or duplicating existing ones).

Windows
MacOS
Linux

References

Module

ContentBrowserData

Header

/Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItemData.h

Include

#include "ContentBrowserItemData.h"

Syntax

class FContentBrowserItemDataTemporaryContext

Remarks

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.

Constructors

Name Description

Public function

FContentBrowserItemDataTemporaryContext()

Default constructor.

Public function

FContentBrowserItemDataTemporaryContext

(
    const FContentBrowserItemDataTempor...
)

Copy support.

Public function

FContentBrowserItemDataTemporaryContext

Move support.

Public function

FContentBrowserItemDataTemporaryContext

(
    FContentBrowserItemData&& InItemDa...,
    FOnValidateItem InOnValidateItem,
    FOnFinalizeItem InOnFinalizeItem
)

Create a context instance.

Functions

Name Description

Public function Const

FContentBrow...

 

FinalizeItem

(
    const FString& InProposedName,
    FText* OutErrorMsg
)

Invoke the delegate used to finalize the creation of the temporary item, and return the real item.

Public function Const

const FConte...

 

GetItemData()

Get the data representing the temporary item instance.

Public function Const

bool

 

IsValid()

Check to see whether this context is valid (has been set to a temporary item).

Public function Const

bool

 

ValidateItem

(
    const FString& InProposedName,
    FText* OutErrorMsg
)

Invoke the delegate used to validate that the proposed item name is valid.

Operators

Typedefs

Name

Description

FOnFinalizeItem

Delegate used to finalize the creation of the temporary item, and return the real item

FOnValidateItem

Delegate used to validate that the proposed item name is valid

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss