Created
July 9, 2022 20:49
-
-
Save raystatic/fd679e94b03d9bff08c771521fcb3e2b 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
@Singleton | |
class Feature01DeeplinkProcessor @Inject constructor( | |
private val context: Context | |
) : DeeplinkProcessor { | |
override fun matches(deeplink: String): Boolean { | |
return deeplink.contains("/feat01") | |
} | |
override fun execute(deeplink: String) { | |
val intent = Intent(context, Feature01Activity::class.java) | |
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) | |
context.startActivity(intent) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment