rememberImpressionNavigator

fun rememberImpressionNavigator(vararg inputs: Any?, navigator: Navigator, impression: suspend () -> Unit): Navigator(source)

A LaunchedImpressionEffect that will also re-run the impression if it re-enters the composition after a navigation event. Navigation should be performed on the returned Navigator and not the provided navigator. This is useful for async single fire side effects like logging or analytics that need to be navigation aware.

Parameters

inputs

A set of inputs that when changed will cause the impression to be re-run.

navigator

The original Navigator to delegate navigation events to.

impression

The impression side effect to run.