diff --git a/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/MainPage.xaml.cs b/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/MainPage.xaml.cs index 673f422f3..747bcb602 100644 --- a/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/MainPage.xaml.cs +++ b/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/MainPage.xaml.cs @@ -22,7 +22,7 @@ private async void OnInvokeJSMethodButtonClicked(object sender, EventArgs e) double x = 123d; double y = 321d; - var result = await hybridWebView.InvokeJavaScriptAsync( + ComputationResult result = await hybridWebView.InvokeJavaScriptAsync( "AddNumbers", // JavaScript method name HybridSampleJSContext.Default.ComputationResult, // JSON serialization info for return type [x, y], // Parameter values @@ -40,7 +40,7 @@ private async void OnInvokeAsyncJSMethodButtonClicked(object sender, EventArgs e { string statusResult = string.Empty; - var asyncResult = await hybridWebView.InvokeJavaScriptAsync>( + Dictionary asyncResult = await hybridWebView.InvokeJavaScriptAsync>( "EvaluateMeWithParamsAndAsyncReturn", // JavaScript method name HybridSampleJSContext.Default.DictionaryStringString, // JSON serialization info for return type ["new_key", "new_value"], // Parameter values