Interface IScaffoldConfigurator
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
Configures the scaffold services inside UseNaluScaffold.
public interface IScaffoldConfigurator
Methods
AddOverlay<TView>()
Registers a VIEW-ONLY overlay: the view is its own lifecycle target — it receives
IOverlayRef (and services) via its single public constructor, intents are
delivered to its OnEnteringAsync, and it is shown via
Show*Async<TView>(). Its BindingContext is left untouched.
IScaffoldConfigurator AddOverlay<TView>() where TView : View
Returns
Type Parameters
TViewThe overlay view, acting as its own model.
AddOverlay<TModel, TView>()
Registers a model-first overlay pairing for IOverlayService: the view is instantiated per presentation with the model (and any registered services) resolvable through its constructor.
IScaffoldConfigurator AddOverlay<TModel, TView>() where TModel : class where TView : View
Returns
Type Parameters
TModelThe overlay model; gets IOverlayRef and services via its single public constructor.
TViewThe overlay view; gets the model and services via its single public constructor.
AddOverlay<TModel, TView>(Func<IServiceProvider, TModel, TView>)
Registers a model-first overlay pairing with an explicit view factory — the zero-magic
escape hatch (no reflection over TView's constructors).
IScaffoldConfigurator AddOverlay<TModel, TView>(Func<IServiceProvider, TModel, TView> viewFactory) where TModel : class where TView : View
Parameters
viewFactoryFunc<IServiceProvider, TModel, TView>Builds the view from the presentation scope (IOverlayRef resolvable) and the model instance.
Returns
Type Parameters
TModelThe overlay model; gets IOverlayRef and services via its single public constructor.
TViewThe overlay view, built by
viewFactory.