Skip to content
Jack Brookes edited this page Oct 31, 2020 ยท 1 revision

UXF.WebAWSDynamoDB

Component which uploads data to an AWS DynamoDB on Web based builds.


Fields

requestCallbackMap: When we read from the database, we use SendMessage to send the data back. This dictionary stores the user's callback and a unique string as the key to make sure the data gets sent to the right callback.

Properties

None

Methods

UXF.WebAWSDynamoDB.HandleDataTable(UXF.UXFDataTable, string, string, int, string, UXF.UXFDataType, int)

Handles a UXF Data Table. Should not normally be called by the user. Instead, call session.SaveDataTable() or trial.SaveDataTable().

Parameters

  • table:

  • experiment:

  • ppid:

  • sessionNum:

  • dataName:

  • dataType:

  • optionalTrialNum:

UXF.WebAWSDynamoDB.HandleJSONSerializableObject(System.Collections.Generic.List<object>, string, string, int, string, UXF.UXFDataType, int)

Handle a JSON-Serializable object. Should not normally be called by the user. Instead, call session.SaveJSONSerializableObject() or trial.SaveJSONSerializableObject().

Parameters

  • serializableObject:

  • experiment:

  • ppid:

  • sessionNum:

  • dataName:

  • dataType:

  • optionalTrialNum:

UXF.WebAWSDynamoDB.HandleBytes(System.Byte[], string, string, int, string, UXF.UXFDataType, int)

Handles a byte array. Should not normally be called by the user. Instead, call session.SaveBytes() or trial.SaveBytes().

Parameters

  • bytes:

  • experiment:

  • ppid:

  • sessionNum:

  • dataName:

  • dataType:

  • optionalTrialNum:

UXF.WebAWSDynamoDB.HandleText(string, string, string, int, string, UXF.UXFDataType, int)

Handles a string. Should not normally be called by the user. Instead, call session.SaveBytes() or trial.SaveBytes().

Parameters

  • text:

  • experiment:

  • ppid:

  • sessionNum:

  • dataName:

  • dataType:

  • optionalTrialNum:

UXF.WebAWSDynamoDB.HandleJSONSerializableObject(System.Collections.Generic.Dictionary<string, object>, string, string, int, string, UXF.UXFDataType, int)

Handle a JSON-Serializable object. Should not normally be called by the user. Instead, call session.SaveJSONSerializableObject() or trial.SaveJSONSerializableObject().

Parameters

  • serializableObject:

  • experiment:

  • ppid:

  • sessionNum:

  • dataName:

  • dataType:

  • optionalTrialNum:

UXF.WebAWSDynamoDB.PutCustomDataInDB(string, System.Collections.Generic.Dictionary<string, object>)

Put an item in the database.

Parameters

  • tableName: The name of the table where the data should be stored

  • item: A dictionary with a string column name as the key, and any value as the object. These will automatically be turned into a database request for you.

UXF.WebAWSDynamoDB.HandleBeforeUnloadEvent()

This is called when the user tries to close the tab.

Parameters

None

UXF.WebAWSDynamoDB.IsCompatibleWith(UnityEditor.BuildTargetGroup)

Returns true if this data handler is definitley compatible with this build target.

Parameters

  • buildTarget:

UXF.WebAWSDynamoDB.IsIncompatibleWith(UnityEditor.BuildTargetGroup)

Returns true if this data handler is definitley incompatible with this build target.

Parameters

  • buildTarget:

Note: This file was automatically generated

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally