Interface IOverlayRef
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
The presentation handle an overlay MODEL receives (via constructor injection) to close its
own overlay — mirroring how page models receive INavigationService.
public interface IOverlayRef
Methods
CloseAsync()
Closes the overlay without a result (the caller's task completes with default).
Task CloseAsync()
Returns
CloseAsync(object?)
Closes the overlay reporting a result to the caller.
Task CloseAsync(object? result)
Parameters
resultobjectThe result; must be assignable to the
TResultthe overlay was shown with.
Returns
Exceptions
- InvalidOperationException
The result is not assignable to the declared
TResult, or the overlay was shown without a result type.