private async void getMarks(double i_Longitude, double i_Latitude) { var list = await Mark.GetRelevantMarks(i_Longitude, i_Latitude, 1.0); if (list != null) { var jsonList = JsonConvert.SerializeObject(list); string functionCall = @"setMarks(" + jsonList + ")"; architectView.CallJavascript(functionCall); } }
protected override void OnPostCreate(Bundle savedInstanceState) { base.OnPostCreate(savedInstanceState); if (architectView != null) { architectView.OnPostCreate(); try { architectView.Load(worldUrl); architectView.CallJavascript("chargeModel('" + Intent.GetIntExtra("id", 0) + "')"); } catch (Exception ex) { Log.Error("WIKITUDE_SAMPLE", ex.ToString()); } } }