TScopedCallback

Helper object for batching callback requests and firing on destruction of the FScopedCallback object.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/ScopedCallback.h

Include

#include "Templates/ScopedCallback.h"

Syntax

template<class CallbackType>
class TScopedCallback

Remarks

Helper object for batching callback requests and firing on destruction of the FScopedCallback object. CallbackType is a class implementing a static method called FireCallback, which does the work.

Constructors

Name Description

Public function

TScopedCallback()

Destructors

Name Description

Public function

~TScopedCallback()

Fires a callback if outstanding requests exist.

Functions

Name Description

Public function Const

bool

 

HasRequests()

Checks whether this callback has outstanding requests.

Public function

void

 

Request()

Request a callback.

Public function

void

 

Unrequest()

Unrequest a callback.

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