Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Blazor.BlazorExternalUriLauncher Class Referencesealed

Opens external absolute URIs in a new browser tab or window. More...

Inheritance diagram for Gondwana.Blazor.BlazorExternalUriLauncher:
Gondwana.Widgets.Controls.IExternalUriLauncher

Public Member Functions

 BlazorExternalUriLauncher (IJSRuntime jsRuntime)
 Creates a browser URI launcher backed by the supplied JavaScript runtime.
async ValueTask OpenAsync (Uri uri, CancellationToken cancellationToken=default)
 Opens the specified URI using the platform's external URI handler.
Parameters
uriThe absolute URI to open.
cancellationTokenA token used to request cancellation of the operation.
Returns
A task representing the asynchronous open operation.
Exceptions
ArgumentNullExceptionThrown when uri is null.
InvalidOperationExceptionThrown when the current platform cannot open the specified URI.

Detailed Description

Opens external absolute URIs in a new browser tab or window.

Definition at line 9 of file BlazorExternalUriLauncher.cs.

Constructor & Destructor Documentation

◆ BlazorExternalUriLauncher()

Gondwana.Blazor.BlazorExternalUriLauncher.BlazorExternalUriLauncher ( IJSRuntime jsRuntime)

Creates a browser URI launcher backed by the supplied JavaScript runtime.

Parameters
jsRuntimeThe JavaScript runtime used for browser interop.

Definition at line 15 of file BlazorExternalUriLauncher.cs.

Member Function Documentation

◆ OpenAsync()

async ValueTask Gondwana.Blazor.BlazorExternalUriLauncher.OpenAsync ( Uri uri,
CancellationToken cancellationToken = default )

Opens the specified URI using the platform's external URI handler.

Parameters
uriThe absolute URI to open.
cancellationTokenA token used to request cancellation of the operation.
Returns
A task representing the asynchronous open operation.
Exceptions
ArgumentNullExceptionThrown when uri is null.
InvalidOperationExceptionThrown when the current platform cannot open the specified URI.

Implements Gondwana.Widgets.Controls.IExternalUriLauncher.

Definition at line 21 of file BlazorExternalUriLauncher.cs.