1 implementation of IHybridWebView
Microsoft.Maui.Controls (1)
HybridWebView\HybridWebView.cs (1)
13
public class HybridWebView : View,
IHybridWebView
23 references to IHybridWebView
Microsoft.Maui (15)
Handlers\HybridWebView\HybridWebViewHandler.cs (11)
67
public static IPropertyMapper<
IHybridWebView
, IHybridWebViewHandler> Mapper = new PropertyMapper<
IHybridWebView
, IHybridWebViewHandler>(ViewHandler.ViewMapper)
71
public static CommandMapper<
IHybridWebView
, IHybridWebViewHandler> CommandMapper = new(ViewCommandMapper)
73
[nameof(
IHybridWebView
.EvaluateJavaScriptAsync)] = MapEvaluateJavaScriptAsync,
74
[nameof(
IHybridWebView
.InvokeJavaScriptAsync)] = MapInvokeJavaScriptAsync,
75
[nameof(
IHybridWebView
.SendRawMessage)] = MapSendRawMessage,
87
IHybridWebView
IHybridWebViewHandler.VirtualView => VirtualView;
160
var invokeTarget = VirtualView.InvokeJavaScriptTarget ?? throw new NotImplementedException($"The {nameof(
IHybridWebView
)}.{nameof(
IHybridWebView
.InvokeJavaScriptTarget)} property must have a value in order to invoke a .NET method from JavaScript.");
174
var t = ((
IHybridWebView
)VirtualView).InvokeJavaScriptType;
315
public static async void MapInvokeJavaScriptAsync(IHybridWebViewHandler handler,
IHybridWebView
hybridWebView, object? arg)
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 (8)
HybridWebView\HybridWebView.cs (8)
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),
126
var result = await Handler!.InvokeAsync(nameof(
IHybridWebView
.EvaluateJavaScriptAsync),