Start a new topic
Solved

WTArchitectViewDelegate in Xamarin.Android

Hi,

i searched the forum to know how to pass data from/to Xamarin and JS code and i found that i need to register a delegate with WTArchitectViewDelegate  but i can't find it in Xamarin Android at all only in iOS.


please if you have a working sample for this functionally share it. 


Hi,


with Android you have to use ArchitectJavaScriptListener which can be added with architectView.AddArchitectJavaScriptInterfaceListener.

This Listener does get all JSON objects that were sent from js.

To send data to js you can use architectView.CallJavascript.


Best Regards,

Alex


OK, thank you.


for sending JSON from JS to Android what i use ?

Found it .

AR.platform.sendJSONObject

Login or Signup to post a comment