Class ScreenCreationContext
- Namespace
- MackySoft.Navigathena
- Assembly
- MackySoft.Navigathena.dll
Acquires dependencies and connects views during construction. The factory returns the screen's single lifecycle handler.
public class ScreenCreationContext
- Inheritance
-
ScreenCreationContext
- Derived
- Inherited Members
- Extension Methods
Properties
Lifetime
Ownership and borrowing for this screen instance. Registration is available during construction.
public LifetimeContext Lifetime { get; }
Property Value
Progress
Reports construction progress until the factory completes. Each acquired resource receives its own work identifier.
public NavigationProgressReporter Progress { get; }
Property Value
RegionId
public RegionInstanceId RegionId { get; }
Property Value
Methods
RegisterScreens(RegionDefinitionId, Action<RegionScreenCatalogBuilder>)
public void RegisterScreens(RegionDefinitionId region, Action<RegionScreenCatalogBuilder> configure)
Parameters
regionRegionDefinitionIdconfigureAction<RegionScreenCatalogBuilder>
SetTransitionEffect(INavigationTransitionEffect, IViewAdapter)
public void SetTransitionEffect(INavigationTransitionEffect effect, IViewAdapter adapter)
Parameters
effectINavigationTransitionEffectadapterIViewAdapter
SetTransitionEffect<TState>(INavigationTransitionEffect, IViewAdapter, ProgressDefinition<TState>, Action<TState>)
Connects a screen-owned effect to a fresh typed progress state whenever it is selected for a transition.
public void SetTransitionEffect<TState>(INavigationTransitionEffect effect, IViewAdapter adapter, ProgressDefinition<TState> progress, Action<TState> receive)
Parameters
effectINavigationTransitionEffectadapterIViewAdapterprogressProgressDefinition<TState>receiveAction<TState>
Type Parameters
TState
Remarks
The effect remains screen-owned; the runtime owns each operation's state and observation. A destination-owned effect cannot observe work preceding its construction.