示例#1
0
 public static IXamarinHostBuilder UseNavigationMiddleware(this IXamarinHostBuilder builder, Action <RemovePageDelegate, NavigationContext> action)
 {
     return(builder.ConfigureNavigation((ctx, sp, sb) =>
     {
         sb.UseMiddleware(action);
     }));
 }
示例#2
0
 public static IXamarinHostBuilder UseNavigationMiddleware <TMiddleware>(this IXamarinHostBuilder builder) where TMiddleware : class
 {
     return(builder.ConfigureNavigation((ctx, sp, sb) =>
     {
         sb.UseMiddleware <TMiddleware>();
     }));
 }
示例#3
0
 public static IXamarinHostBuilder UseNavigationMiddleware(this IXamarinHostBuilder builder, Func <PopModalDelegate, NavigationContext, Task> func)
 {
     return(builder.ConfigureNavigation((ctx, sp, sb) =>
     {
         sb.UseMiddleware(func);
     }));
 }