Interface INavigationServiceProvider
- Namespace
 - Nalu
 
- Assembly
 - Nalu.Maui.Navigation.dll
 
Provides navigation-scoped services.
public interface INavigationServiceProvider : IServiceProvider, IDisposable
  - Inherited Members
 
Remarks
Service instances added to this provider are visible to nested routes and disposed when the current route is left.
Properties
ContextPage
Gets the Page instance which hosts this navigation service provider.
Page ContextPage { get; }
  Property Value
Methods
AddNavigationScoped<T>(T)
Registers a service instance visible to nested routes and disposed when the current route is left.
void AddNavigationScoped<T>(T instance)
  Parameters
instanceTThe service instance.
Type Parameters
TThe service type to register.