SetupBrowserAppAsync Method
Loads avalonia javascript modules and configures browser backend.
Definition
Namespace: Avalonia.Browser
Assembly: Avalonia.Browser (in Avalonia.Browser.dll)
- C#
- VB
- F#
public static Task SetupBrowserAppAsync(
this AppBuilder builder,
BrowserPlatformOptions? options = null
)
<ExtensionAttribute>
Public Shared Function SetupBrowserAppAsync (
builder As AppBuilder,
Optional options As BrowserPlatformOptions = Nothing
) As Task
[<ExtensionAttribute>]
static member SetupBrowserAppAsync :
builder : AppBuilder *
?options : BrowserPlatformOptions
(* Defaults:
let _options = defaultArg options null
*)
-> Task
Parameters
- AppBuilder
- Application builder.
- BrowserPlatformOptions (Optional)
- Browser backend specific options.
Return Value
TaskUsage 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).