Skip to main content

StartBrowserAppAsync Method

Configures browser backend, loads avalonia javascript modules and creates a single view lifetime from the passed parameter.

Definition

Namespace: Avalonia.Browser
Assembly: Avalonia.Browser (in Avalonia.Browser.dll)

public static Task StartBrowserAppAsync(
this AppBuilder builder,
string mainDivId,
BrowserPlatformOptions? options = null
)
View Source

Parameters

  AppBuilder
Application builder.
  String
ID of the html element where avalonia content should be rendered.
  BrowserPlatformOptions  (Optional)
Browser backend specific options.

Return Value

Task

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

BrowserAppBuilder Class
Avalonia.Browser Namespace