EscapeHatchTargetResolver

Resolves which tab the NTP escape hatch should offer to return to.

The hatch only ever renders in Regular mode, so an EscapeHatchTarget with EscapeHatchTarget.mode == BrowserMode.FIRE also implies that tapping the hatch must switch into Fire mode to open it.

Functions

Link copied to clipboard
abstract suspend fun resolve(): EscapeHatchTarget?

Returns the tab to offer, or null when there is none (including whenever the app is in Fire mode).