fix naming and docs

This commit is contained in:
Grigorii 2023-03-24 18:40:41 +04:00
parent 427024d095
commit 023df55144
1 changed files with 6 additions and 3 deletions

View File

@ -14,8 +14,11 @@ import kotlinx.coroutines.flow.onEach
class DeeplinkHandler {
/**
* @param observerOrder - entity index that can handle deeplink
* e.g. 0 - can be root bottom navigator, 1 - first screen of feature, 2 - second ...
* @param observerOrder
* Entity index that can handle deeplink
* E.g. 0 - can be root bottom navigation
* 1 - first screen that handles chain of deeplink screens ("home" screen)
* 2 - second screen ("list" screen)
* */
class CurrentDeeplink(
val observerOrder: Int,
@ -25,7 +28,7 @@ class DeeplinkHandler {
private val currentDeeplink = MutableStateFlow<CurrentDeeplink?>(null)
private val deeplinkQueue = ArrayDeque<DeeplinkModel>()
fun sendDeeplink(url: String) {
fun handleDeeplink(url: String) {
val deeplink = DeeplinkModel(url)
deeplinkQueue.add(deeplink)