Table of Contents

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

Task

CloseAsync(object?)

Closes the overlay reporting a result to the caller.

Task CloseAsync(object? result)

Parameters

result object

The result; must be assignable to the TResult the overlay was shown with.

Returns

Task

Exceptions

InvalidOperationException

The result is not assignable to the declared TResult, or the overlay was shown without a result type.