Created
July 9, 2022 21:14
-
-
Save raystatic/da73355abab04765b08ea6e1dbd4ce03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DefaultDeeplinkHandler constructor( | |
private val processors: Set<@JvmSuppressWildcards DeeplinkProcessor> | |
): DeeplinkHandler { | |
override fun process(deeplink: String): Boolean { | |
processors.forEach { | |
if (it.matches(deeplink)) { | |
it.execute(deeplink) | |
return true | |
} | |
} | |
return false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment