UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDelegateHandle Class Reference

#include <IDelegateInstance.h>

Public Types

enum  EGenerateNewHandleType { GenerateNewHandle }
 

Public Member Functions

 FDelegateHandle ()
 
 FDelegateHandle (EGenerateNewHandleType)
 
bool IsValid () const
 
void Reset ()
 
bool operator== (const FDelegateHandle &Rhs) const
 
bool operator!= (const FDelegateHandle &Rhs) const
 

Friends

UE_FORCEINLINE_HINT uint32 GetTypeHash (const FDelegateHandle &Key)
 

Detailed Description

Class representing a handle to a specific object/function pair bound to a delegate.

Examples
/work/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

Member Enumeration Documentation

◆ EGenerateNewHandleType

Enumerator
GenerateNewHandle 

Constructor & Destructor Documentation

◆ FDelegateHandle() [1/2]

FDelegateHandle::FDelegateHandle ( )
inline

Creates an initially unset handle

◆ FDelegateHandle() [2/2]

FDelegateHandle::FDelegateHandle ( EGenerateNewHandleType  )
inlineexplicit

Creates a handle pointing to a new instance

Member Function Documentation

◆ IsValid()

bool FDelegateHandle::IsValid ( ) const
inline

Returns true if this was ever bound to a delegate, but you need to check with the owning delegate to confirm it is still valid

◆ operator!=()

bool FDelegateHandle::operator!= ( const FDelegateHandle Rhs) const
inline

◆ operator==()

bool FDelegateHandle::operator== ( const FDelegateHandle Rhs) const
inline

◆ Reset()

void FDelegateHandle::Reset ( )
inline

Clear handle to indicate it is no longer bound

Friends And Related Symbol Documentation

◆ GetTypeHash

UE_FORCEINLINE_HINT uint32 GetTypeHash ( const FDelegateHandle Key)
friend

The documentation for this class was generated from the following files: