From 091c6c25d48eba197efa59099f4c13b14fd573ce Mon Sep 17 00:00:00 2001 From: David Britch Date: Mon, 28 Oct 2024 11:26:32 +0000 Subject: [PATCH] Specify return type. --- .../HybridWebViewDemo/HybridWebViewDemo.csproj | 2 +- .../HybridWebViewDemo/HybridWebViewDemo/MainPage.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/HybridWebViewDemo.csproj b/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/HybridWebViewDemo.csproj index 8adb15943..abc08bdb5 100644 --- a/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/HybridWebViewDemo.csproj +++ b/9.0/UserInterface/Views/HybridWebViewDemo/HybridWebViewDemo/HybridWebViewDemo.csproj @@ -61,7 +61,7 @@ - + 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