Table of Contents

IUriNavigationService 接口

命名空间
ClassIsland.Core.Abstractions.Services
程序集
ClassIsland.Core.dll

Uri导航服务,用于在ClassIsland内部和外部通过uri进行导航。

public interface IUriNavigationService : IPublicUriNavigationService
继承成员

属性

UriDomainApp

ClassIsland 应用导航主机名

public static string UriDomainApp { get; }

属性值

string

UriDomainPlugins

ClassIsland 插件导航主机名

public static string UriDomainPlugins { get; }

属性值

string

UriScheme

ClassIsland 内部的 uri 协议名

public static string UriScheme { get; }

属性值

string

方法

HandlePluginsNavigation(string, Action<UriNavigationEventArgs>)

注册插件导航主机下的导航处理程序。

void HandlePluginsNavigation(string path, Action<UriNavigationEventArgs> onNavigated)

参数

path string

导航路径

onNavigated Action<UriNavigationEventArgs>

导航处理程序

NavigateWrapped(Uri, out Exception?)

导航到指定 Uri,但在抛出异常时自动捕获,并显示错误提示。

void NavigateWrapped(Uri uri, out Exception? exception)

参数

uri Uri

要导航的 Uri

exception Exception

导航时产生的异常(如有)