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


1 Like

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


1 Like