Package-level declarations

Types

Link copied to clipboard
interface Overlay<Result : Any>

An Overlay is composable content that can be shown on top of other content via an OverlayHost . Overlays are typically used for one-off request/result flows and should not usually attempt to do any sort of external navigation or make any assumptions about the state of the app. They should only emit a Result to the given OverlayNavigator when they are done.

Link copied to clipboard

An OverlayHost can be used overlaysOverlay with content on top of other content. This is useful for one-off request/result flows such as:

Link copied to clipboard

Data managed by an OverlayHost to track the current overlay state. This should rarely be implemented by consumers!

Link copied to clipboard

An OverlayNavigator is a simple API offered to overlays to call finish with a result when they are done.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun ContentWithOverlays(modifier: Modifier = Modifier, overlayHost: OverlayHost = rememberOverlayHost(), content: @Composable () -> Unit)

Renders the given content with the ability to show overlays on top of it. This works by exposing an OverlayHost via LocalOverlayHost.

Link copied to clipboard

Returns a remembered an OverlayHost that can be used to show overlays.