Table of Contents

Class ScreenDefinition<TRoute>

Namespace
MackySoft.Navigathena
Assembly
MackySoft.Navigathena.dll

Constructs stable screen dependencies. Changing navigation input is passed to lifecycle methods, not construction.

public sealed class ScreenDefinition<TRoute> : ScreenDefinition where TRoute : Route

Type Parameters

TRoute
Inheritance
ScreenDefinition<TRoute>
Inherited Members

Remarks

The runtime checks cancellation before invoking construction and before initializing the returned handler. Construction forwards the token to ongoing work without duplicating the entry check. Cancellation does not skip cleanup of registered resources.

Constructors

ScreenDefinition(Func<ScreenCreationContext<TRoute>, CancellationToken, ValueTask<IScreenLifecycleHandler<TRoute>>>, ScreenInstancePolicy)

public ScreenDefinition(Func<ScreenCreationContext<TRoute>, CancellationToken, ValueTask<IScreenLifecycleHandler<TRoute>>> create, ScreenInstancePolicy instancePolicy = ScreenInstancePolicy.Single)

Parameters

create Func<ScreenCreationContext<TRoute>, CancellationToken, ValueTask<IScreenLifecycleHandler<TRoute>>>
instancePolicy ScreenInstancePolicy