deepLinks

fun deepLinks(builder: DeepLinkBuilder.() -> Unit)(source)

Maps the intents the app's activity receives, at launch or while running, to destinations: a launcher shortcut, a notification, a widget or a link. The host opens the destination as if a screen had called navigate(key).

deepLinks {
action("com.example.action.OPEN_SETTINGS") { SettingsRoute }
match { intent -> intent.data?.lastPathSegment?.toIntOrNull()?.let(::ItemRoute) }
}