예제 #1
0
        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);
            }
        }
예제 #2
0
        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());
                }
            }
        }