Skip to main content

SetupBrowserAppAsync Method

Loads avalonia javascript modules and configures browser backend.

Definition​

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

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

Parameters​

  AppBuilder
Application builder.
  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).

Remarks​

This method doesn't creates any avalonia views to be rendered. To do so create an AvaloniaView object. Alternatively, you can call StartBrowserAppAsync(AppBuilder, String, BrowserPlatformOptions) method instead of SetupBrowserAppAsync(AppBuilder, BrowserPlatformOptions).

See Also​

Reference​

BrowserAppBuilder Class
Avalonia.Browser Namespace