Skip to content

Commit

Permalink
Merge branch 'main' into dabritch-net9
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch authored Oct 30, 2024
2 parents f5cbc3d + a3dd342 commit dc6c6b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private async void OnInvokeJSMethodButtonClicked(object sender, EventArgs e)
double x = 123d;
double y = 321d;

var result = await hybridWebView.InvokeJavaScriptAsync<ComputationResult>(
ComputationResult result = await hybridWebView.InvokeJavaScriptAsync<ComputationResult>(
"AddNumbers", // JavaScript method name
HybridSampleJSContext.Default.ComputationResult, // JSON serialization info for return type
[x, y], // Parameter values
Expand All @@ -40,7 +40,7 @@ private async void OnInvokeAsyncJSMethodButtonClicked(object sender, EventArgs e
{
string statusResult = string.Empty;

var asyncResult = await hybridWebView.InvokeJavaScriptAsync<Dictionary<string, string>>(
Dictionary<string,string> asyncResult = await hybridWebView.InvokeJavaScriptAsync<Dictionary<string, string>>(
"EvaluateMeWithParamsAndAsyncReturn", // JavaScript method name
HybridSampleJSContext.Default.DictionaryStringString, // JSON serialization info for return type
["new_key", "new_value"], // Parameter values
Expand Down

0 comments on commit dc6c6b4

Please sign in to comment.