2.9.16.0
Coherent GT for UE4
UCoherentUIGTJSPayload Class Reference
+ Inheritance diagram for UCoherentUIGTJSPayload:

Public Member Functions

FString GetString (int32 index)
 
int32 GetInt32 (int32 index)
 
uint32 GetUInt32 (int32 index)
 
bool GetBool (int32 index)
 
float GetNumber (int32 index)
 
void ReadObject (int32 index, UObject *object)
 
void SetArguments (const Coherent::UIGT::EventArguments *args)
 

Public Attributes

FString EventName
 

Detailed Description

The class represents data passed by JavaScript to the application. Use this class to unpack parameters passed from JavaScript to the application.

Member Function Documentation

◆ GetBool()

bool UCoherentUIGTJSPayload::GetBool ( int32  index)

Gets a Boolean parameter passed from JavaScript

Parameters
indexthe index of the parameter

◆ GetInt32()

int32 UCoherentUIGTJSPayload::GetInt32 ( int32  index)

Gets an Integer parameter passed from JavaScript

Parameters
indexthe index of the parameter

◆ GetNumber()

float UCoherentUIGTJSPayload::GetNumber ( int32  index)

Gets a Float parameter passed from JavaScript

Parameters
indexthe index of the parameter

◆ GetString()

FString UCoherentUIGTJSPayload::GetString ( int32  index)

Gets a String parameter passed from JavaScript

Parameters
indexthe index of the parameter

◆ GetUInt32()

uint32 UCoherentUIGTJSPayload::GetUInt32 ( int32  index)

Gets an Unsigned Integer parameter passed from JavaScript

Parameters
indexthe index of the parameter

◆ ReadObject()

void UCoherentUIGTJSPayload::ReadObject ( int32  index,
UObject *  object 
)

Reads an Object passed from JavaScript and updates the properties of the UObject passed. All properties that have the same name and compatible type will be updated.

Parameters
indexthe index of the parameter
objectthe object whose properties to update

Member Data Documentation

◆ EventName

FString UCoherentUIGTJSPayload::EventName

The name of the event triggered from JavaScript