1 implementation of IHybridWebView
Microsoft.Maui.Controls (1)
HybridWebView\HybridWebView.cs (1)
13 public class HybridWebView : View, IHybridWebView
27 references to IHybridWebView
Microsoft.Maui (18)
Handlers\HybridWebView\HybridWebViewHandler.cs (14)
70 public static IPropertyMapper<IHybridWebView, IHybridWebViewHandler> Mapper = new PropertyMapper<IHybridWebView, IHybridWebViewHandler>(ViewHandler.ViewMapper) 74 public static CommandMapper<IHybridWebView, IHybridWebViewHandler> CommandMapper = new(ViewCommandMapper) 76 [nameof(IHybridWebView.EvaluateJavaScriptAsync)] = MapEvaluateJavaScriptAsync, 77 [nameof(IHybridWebView.InvokeJavaScriptAsync)] = MapInvokeJavaScriptAsync, 78 [nameof(IHybridWebView.SendRawMessage)] = MapSendRawMessage, 90 IHybridWebView IHybridWebViewHandler.VirtualView => VirtualView; 175 var invokeTarget = VirtualView.InvokeJavaScriptTarget ?? throw new InvalidOperationException($"The {nameof(IHybridWebView)}.{nameof(IHybridWebView.InvokeJavaScriptTarget)} property must have a value in order to invoke a .NET method from JavaScript."); 176 var invokeTargetType = VirtualView.InvokeJavaScriptType ?? throw new InvalidOperationException($"The {nameof(IHybridWebView)}.{nameof(IHybridWebView.InvokeJavaScriptType)} property must have a value in order to invoke a .NET method from JavaScript."); 374 public static async void MapInvokeJavaScriptAsync(IHybridWebViewHandler handler, IHybridWebView hybridWebView, object? arg) 397 static async Task<object?> MapInvokeJavaScriptAsyncImpl(IHybridWebViewHandler handler, IHybridWebView hybridWebView, HybridWebViewInvokeJavaScriptRequest invokeJavaScriptRequest) 410 await handler.InvokeAsync(nameof(IHybridWebView.EvaluateJavaScriptAsync),
Handlers\HybridWebView\HybridWebViewHandler.Standard.cs (3)
5 public partial class HybridWebViewHandler : ViewHandler<IHybridWebView, object> 9 public static void MapEvaluateJavaScriptAsync(IHybridWebViewHandler handler, IHybridWebView hybridWebView, object? arg) { } 11 public static void MapSendRawMessage(IHybridWebViewHandler handler, IHybridWebView hybridWebView, object? arg) { }
Handlers\HybridWebView\IHybridWebViewHandler.cs (1)
17 new IHybridWebView VirtualView { get; }
Microsoft.Maui.Controls (9)
HybridWebView\HybridWebView.cs (9)
38 object? IHybridWebView.InvokeJavaScriptTarget { get; set; } 46 Type? IHybridWebView.InvokeJavaScriptType 55 ((IHybridWebView)this).InvokeJavaScriptTarget = target; 56 ((IHybridWebView)this).InvokeJavaScriptType = typeof(T); 59 void IHybridWebView.RawMessageReceived(string rawMessage) 76 nameof(IHybridWebView.SendRawMessage), 108 nameof(IHybridWebView.InvokeJavaScriptAsync), 137 nameof(IHybridWebView.InvokeJavaScriptAsync), 155 var result = await Handler!.InvokeAsync(nameof(IHybridWebView.EvaluateJavaScriptAsync),