AvaloniaWaylandPlatformExtensions Class
Definition
Avalonia.AppBuilder extensions for enabling the Wayland windowing backend.
public class AvaloniaWaylandPlatformExtensions
Methods
| Name | Description |
|---|---|
| UseWayland | Configures the application to use the Wayland windowing backend. Options can be supplied by registering a Avalonia.WaylandPlatformOptions instance with Avalonia.AvaloniaLocator. |
| UseWaylandWithFallback | Configures the application to use the Wayland windowing backend when a usable Wayland compositor is available, falling back to the previously configured windowing backend otherwise. Call it after UseX11 or UsePlatformDetect, e. g. .UsePlatformDetect().UseWaylandWithFallback(). Does nothing on non-Linux platforms. |
UseWayland Method
Configures the application to use the Wayland windowing backend. Options can be supplied by registering a Avalonia.WaylandPlatformOptions instance with Avalonia.AvaloniaLocator.
public Avalonia.AppBuilder UseWayland(Avalonia.AppBuilder builder)
Parameters
builder Avalonia.AppBuilder
The application builder.
Returns
The same builder for chaining.
UseWaylandWithFallback Method
Configures the application to use the Wayland windowing backend when a usable Wayland
compositor is available, falling back to the previously configured windowing backend
otherwise. Call it after UseX11 or UsePlatformDetect, e. g.
.UsePlatformDetect().UseWaylandWithFallback(). Does nothing on non-Linux platforms.
public Avalonia.AppBuilder UseWaylandWithFallback(Avalonia.AppBuilder builder)
Parameters
builder Avalonia.AppBuilder
The application builder.
Returns
The same builder for chaining.