Extensions: how do I pass parameters/results of type DICTIONARY to/from extension?

STarting to write extensions and need help.
To learn, I want to write an example extension taking a dictionary, adding one tag/value and return it back.
What java type to use to pass in parameter of type DICTIONARY (block) and to return it ?
best rgds, Kuba

Well, I do not know... but I would take a look at the App Inventor sources to find it out...
here they are appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime at master · mit-cml/appinventor-sources · GitHub

Taifun

1 Like

You can use the YailDictionary class (in App Inventor sources) to get and return AI2 dictionary values in your extension.

https://ullisroboterseite.de/AIComponentsDoc/classcom_1_1google_1_1appinventor_1_1components_1_1runtime_1_1util_1_1_yail_dictionary.html

1 Like