dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

[net9.0] Shift platforms specific code from HybridWebView to the handler using Command Mappers #24269

Closed PureWeen closed 1 month ago

PureWeen commented 2 months ago

Description

https://github.com/dotnet/maui/pull/23769#pullrequestreview-2241370886

The code here should use the CommandMapper pattern

https://github.com/dotnet/maui/blob/net9.0/src/Controls/src/Core/HybridWebView/HybridWebView.cs#L122

The best example of this is probably IScrollView

There's a request you can make to the CommandMApper

image

And then the response can come from

image

mattleibow commented 2 months ago

See also: https://github.com/dotnet/maui/pull/23769#pullrequestreview-2241370886

Eilon commented 1 month ago

I believe this is all done now?