Table of Contents

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

Page

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

instance T

The service instance.

Type Parameters

T

The service type to register.