From 023df551444667dc441119791017e2cd2775aa07 Mon Sep 17 00:00:00 2001 From: Grigorii Date: Fri, 24 Mar 2023 18:40:41 +0400 Subject: [PATCH] fix naming and docs --- .../touchin/roboswag/deeplink_utils/DeeplinkHandler.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deeplink-utils/src/main/java/ru/touchin/roboswag/deeplink_utils/DeeplinkHandler.kt b/deeplink-utils/src/main/java/ru/touchin/roboswag/deeplink_utils/DeeplinkHandler.kt index 6de0f78..031f2c5 100644 --- a/deeplink-utils/src/main/java/ru/touchin/roboswag/deeplink_utils/DeeplinkHandler.kt +++ b/deeplink-utils/src/main/java/ru/touchin/roboswag/deeplink_utils/DeeplinkHandler.kt @@ -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(null) private val deeplinkQueue = ArrayDeque() - fun sendDeeplink(url: String) { + fun handleDeeplink(url: String) { val deeplink = DeeplinkModel(url) deeplinkQueue.add(deeplink)