You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It's great that we now have a cross-platform URI/file launcher (ILauncher) in Avalonia. However, I would like to add the ability
to be notified by an event about the URI/file launch and
to intercept the call and handle the URI/file myself
Use cases are situations where you want to either a) redirect an external Uri (e.g. to you app's website) to a view within your app or b) your app uses Uri-based navigation (to perform UI actions based on the user invoking a Uri path).
In principle, it would even allow rewriting the URI (before launching a platform browser).
Describe the solution you'd like
I would like to introduce a new event on ILauncher implementations that gets invoked when a Uri/file launch happens. The event arguments should carry information about the Uri/file and have a property to cancel the default invocation.
Describe alternatives you've considered
Previously I had a custom Hyperlink(button) and URI launcher implementation. Having the launcher in Avalonia directly means that there will be third-party controls using ILauncher. So it would be great to have some flexibility to intercept, rewrite or handle Uri/file launch calls.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It's great that we now have a cross-platform URI/file launcher (
ILauncher
) in Avalonia. However, I would like to add the abilityUse cases are situations where you want to either a) redirect an external Uri (e.g. to you app's website) to a view within your app or b) your app uses Uri-based navigation (to perform UI actions based on the user invoking a Uri path).
In principle, it would even allow rewriting the URI (before launching a platform browser).
Describe the solution you'd like
I would like to introduce a new event on
ILauncher
implementations that gets invoked when a Uri/file launch happens. The event arguments should carry information about the Uri/file and have a property to cancel the default invocation.Describe alternatives you've considered
Previously I had a custom Hyperlink(button) and URI launcher implementation. Having the launcher in Avalonia directly means that there will be third-party controls using
ILauncher
. So it would be great to have some flexibility to intercept, rewrite or handle Uri/file launch calls.Additional context
No response
The text was updated successfully, but these errors were encountered: