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