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

#include <NativeJSScripting.h>

+ Inheritance diagram for FNativeJSScripting:

Public Member Functions

 FNativeJSScripting (bool bJSBindingToLoweringEnabled, TSharedRef< FNativeWebBrowserProxy > Window)
 
virtual void BindUObject (const FString &Name, UObject *Object, bool bIsPermanent=true) override
 
virtual void UnbindUObject (const FString &Name, UObject *Object=nullptr, bool bIsPermanent=true) override
 
bool OnJsMessageReceived (const FString &Message)
 
FString ConvertStruct (UStruct *TypeInfo, const void *StructPtr)
 
FString ConvertObject (UObject *Object)
 
virtual void InvokeJSFunction (FGuid FunctionId, int32 ArgCount, FWebJSParam Arguments[], bool bIsError=false) override
 
virtual void InvokeJSErrorResult (FGuid FunctionId, const FString &Error) override
 
void PageLoaded ()
 
- Public Member Functions inherited from FWebJSScripting
 FWebJSScripting (bool bInJSBindingToLoweringEnabled)
 
FString GetBindingName (const FString &Name, UObject *Object) const
 
FString GetBindingName (const FFieldVariant &Property) const
 
virtual void AddReferencedObjects (FReferenceCollector &Collector) override
 
virtual FString GetReferencerName () const override
 
- Public Member Functions inherited from FGCObject
 FGCObject ()
 
 FGCObject (const FGCObject &Other)
 
 FGCObject (FGCObject &&Other)
 
 FGCObject (EFlags Flags)
 
virtual ~FGCObject ()
 
FGCObjectoperator= (const FGCObject &)
 
FGCObjectoperator= (FGCObject &&)
 
COREUOBJECT_API void RegisterGCObject ()
 
COREUOBJECT_API void UnregisterGCObject ()
 
virtual bool GetReferencerPropertyName (UObject *Object, FString &OutPropertyName) const
 
- Public Member Functions inherited from TSharedFromThis< FNativeJSScripting >
TSharedRef< FNativeJSScripting, Mode > AsShared ()
 
TSharedRef< FNativeJSScripting const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< FNativeJSScripting, Mode > AsWeak ()
 
TWeakPtr< FNativeJSScripting const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Additional Inherited Members

- Public Types inherited from FGCObject
enum class  EFlags : uint32 { None = 0 , RegisterLater = 1 << 0 , AddStableNativeReferencesOnly = 1 << 1 }
 
- Static Public Member Functions inherited from FGCObject
static COREUOBJECT_API void StaticInit ()
 
- Static Public Attributes inherited from FGCObject
static COREUOBJECT_API UGCObjectReferencerGGCObjectReferencer = nullptr
 
- Protected Member Functions inherited from FWebJSScripting
FGuid PtrToGuid (UObject *Ptr)
 
UObjectGuidToPtr (const FGuid &Guid)
 
void RetainBinding (UObject *Object)
 
void ReleaseBinding (UObject *Object)
 
- Protected Member Functions inherited from TSharedFromThis< FNativeJSScripting >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< FNativeJSScripting >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 
- Protected Attributes inherited from FWebJSScripting
FGuid BaseGuid
 
TMap< TObjectPtr< UObject >, ObjectBindingBoundObjects
 
TMap< FString, UObject * > PermanentUObjectsByName
 
const bool bJSBindingToLoweringEnabled
 

Detailed Description

Implements handling of bridging UObjects client side with JavaScript renderer side.

Constructor & Destructor Documentation

◆ FNativeJSScripting()

FNativeJSScripting::FNativeJSScripting ( bool  bJSBindingToLoweringEnabled,
TSharedRef< FNativeWebBrowserProxy Window 
)

Member Function Documentation

◆ BindUObject()

void FNativeJSScripting::BindUObject ( const FString &  Name,
UObject Object,
bool  bIsPermanent = true 
)
overridevirtual

Implements FWebJSScripting.

◆ ConvertObject()

FString FNativeJSScripting::ConvertObject ( UObject Object)

◆ ConvertStruct()

FString FNativeJSScripting::ConvertStruct ( UStruct TypeInfo,
const void StructPtr 
)

◆ InvokeJSErrorResult()

void FNativeJSScripting::InvokeJSErrorResult ( FGuid  FunctionId,
const FString &  Error 
)
overridevirtual

Implements FWebJSScripting.

◆ InvokeJSFunction()

void FNativeJSScripting::InvokeJSFunction ( FGuid  FunctionId,
int32  ArgCount,
FWebJSParam  Arguments[],
bool  bIsError = false 
)
overridevirtual

Implements FWebJSScripting.

◆ OnJsMessageReceived()

bool FNativeJSScripting::OnJsMessageReceived ( const FString &  Message)

◆ PageLoaded()

void FNativeJSScripting::PageLoaded ( )

◆ UnbindUObject()

void FNativeJSScripting::UnbindUObject ( const FString &  Name,
UObject Object = nullptr,
bool  bIsPermanent = true 
)
overridevirtual

Implements FWebJSScripting.


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