BlazorWebViewHandler Class

Definition

public ref class BlazorWebViewHandler : Microsoft::Maui::Handlers::ViewHandler<Microsoft::AspNetCore::Components::WebView::Maui::IBlazorWebView ^, System::Object ^>
public class BlazorWebViewHandler : Microsoft.Maui.Handlers.ViewHandler<Microsoft.AspNetCore.Components.WebView.Maui.IBlazorWebView,object>
type BlazorWebViewHandler = class
    inherit ViewHandler<IBlazorWebView, obj>
Public Class BlazorWebViewHandler
Inherits ViewHandler(Of IBlazorWebView, Object)
Inheritance

Constructors

BlazorWebViewHandler()

Initializes a new instance of BlazorWebViewHandler with default mappings.

BlazorWebViewHandler(PropertyMapper)

Initializes a new instance of BlazorWebViewHandler using the specified mappings.

Fields

BlazorWebViewMapper

This field is part of MAUI infrastructure and is not intended for use by application code.

Properties

ContainerView

Gets the view that acts as a container for the PlatformView.

(Inherited from ViewHandler)
HasContainer

Gets or sets a value that indicates whether the PlatformView is contained within a view.

(Inherited from ViewHandler)
MauiContext (Inherited from ElementHandler)
NeedsContainer

Gets a value that indicates whether or not the VirtualView needs a container view.

(Inherited from ViewHandler)
PlatformView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
Services (Inherited from ElementHandler)
VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)

Methods

ConnectHandler(TPlatformView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
CreateFileProvider(String)

Creates a file provider for static assets used in the BlazorWebView. The default implementation serves files from a platform-specific location. Override this method to return a custom IFileProvider to serve assets such as wwwroot/index.html. Call the base method and combine its return value with a CompositeFileProvider to use both custom assets and default assets.

CreatePlatformView()
DisconnectHandler(TPlatformView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
GetDesiredSize(Double, Double) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (Inherited from ElementHandler)
MapHostPage(BlazorWebViewHandler, IBlazorWebView)

Maps the HostPage property to the specified handler.

MapRootComponents(BlazorWebViewHandler, IBlazorWebView)

Maps the RootComponents property to the specified handler.

PlatformArrange(Rect) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
RemoveContainer() (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetMauiContext(IMauiContext) (Inherited from ElementHandler)
SetupContainer() (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IElement) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IView) (Inherited from ViewHandler<TVirtualView,TPlatformView>)
TryDispatchAsync(Action<IServiceProvider>)

Calls the specified workItem asynchronously and passes in the scoped services available to Razor components.

UpdateValue(String) (Inherited from ElementHandler)

Explicit Interface Implementations

IElementHandler.DisconnectHandler() (Inherited from ElementHandler)
IElementHandler.PlatformView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)
IViewHandler.ContainerView (Inherited from ViewHandler)
IViewHandler.VirtualView (Inherited from ViewHandler<TVirtualView,TPlatformView>)

Applies to