To pass information from native Java code to your JavaScript environment you may ether:
> use e.g. architectView.callJavascript("updatePlacemarks()"); // ensure updatePlacemarks-function is defined in JS to notify your JS abour events controlled in native environment or
> use e.g. architectView.callJavascript("injectData({'key1': 'value1', 'key2':'value2'})"); // ensure injectData-function is defined in JS and can deal with one object-parameter
I hope this helps.
Kind regards, Andreas
R
Roberto Leal
said
almost 10 years ago
Hello
Previously an helped me with a question and I thank you for that.
I has now emerged a new question which is about the passage of information between android and js
I've been reading in the forum and and make mention to ArchitectView.callJavascript method which allows me to call a function in javascript loaded architect world, but I do not need to call a function, what I need is to pass information from java to js to arm the direction of webservice and / or change parameters in the request
Roberto Leal
1 person has this problem