From 1efd00f2d24ffb57f973a4bedb1742a8307b5156 Mon Sep 17 00:00:00 2001 From: David Britch Date: Thu, 14 Nov 2024 15:36:33 +0000 Subject: [PATCH] Edit. --- docs/user-interface/controls/hybridwebview.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user-interface/controls/hybridwebview.md b/docs/user-interface/controls/hybridwebview.md index 22eb33d4a..f701d4def 100644 --- a/docs/user-interface/controls/hybridwebview.md +++ b/docs/user-interface/controls/hybridwebview.md @@ -425,14 +425,14 @@ internal partial class HybridSampleJSContext : JsonSerializerContext Your app's JavaScript code within the can synchronously invoke C# methods, with optional parameters and an optional return value. This can be achieved by: -- Declaring public C# methods that will be invoked from JavaScript. +- Defining public C# methods that will be invoked from JavaScript. - Calling the method to set the object that will be the target of JavaScript calls from the . - Calling the C# methods from JavaScript. > [!IMPORTANT] > Asynchronously invoking C# methods from JavaScript isn't currently supported. -The following example shows four public methods that can be invoked from JavaScript: +The following example defines four public methods for invoking from JavaScript: ```csharp public partial class MainPage : ContentPage @@ -473,7 +473,7 @@ public partial class MainPage : ContentPage } ``` -You must then call the method to set the object that will be the target of JavaScript calls from the : +You must call the method to set the object that will be the target of JavaScript calls from the : ```csharp public partial class MainPage : ContentPage @@ -488,7 +488,7 @@ public partial class MainPage : ContentPage } ``` -The public methods on the object set via the method can then be invoked from JavaScript with the `window.HybridWebView.InvokeDotNet`function: +The public methods on the object set via the method can then be invoked from JavaScript with the `window.HybridWebView.InvokeDotNet` function: ```js await window.HybridWebView.InvokeDotNet('DoSyncWork');