I have small app created with Xamarin for android, where I have WebView for displaying some data and than backing up it with C# code for storing data. To get data from webview I use javascript and in C# I have method like this:
[Export("addMood2")]
[JavascriptInterface]
public String saveData(string data) { ...}
and than I call it from JS code (I have webView.AddJavascriptInterface and all necessary stuff). So it works if I pass string, but of course in javascript I create some object and what to save it (it more or less always same structure), so for now I stringify it and than passing as string, parsing on C# side and have data. But is it possible to pass that object from JS directly - as Dictionary or some mapped structure? If I try to use "saveData(Java.Lang.Object data)" data is always null, so I guess it doesn't like type mapping.