You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I come up with a question as I'm not sure if my usecase is supported or not.
Usecase
If deeplink comes from within the app (i.e. deeplink navigation within same app ), launch desired activity without touching current backstack.
If deeplink comes from external (i.e. from social apps, notifications etc), launch desired activity with creating proper backstack.
What I looked for
I was searching for a method that return DeeplinkResult but not launching activities inside the method, so that the returned DeeplinkResult can be used for general purposes.
Example
val deeplinkResult = delegate.dispatchFrom(activity, intent) // This method returns result, but it is also launching activities internallyif (comeFromExternal) {
startActivityWithProperTaskStack(deeplinkResult.intent)
} else {
startActivity(deeplinkResult.intent)
}
Is there any workaround for such usecase please?
The text was updated successfully, but these errors were encountered:
hashlin
changed the title
[Question] Conditional choice between Intent and TaskStackBuilder
[Question] Get DeeplinkResult without launching activity
Jan 11, 2021
I come up with a question as I'm not sure if my usecase is supported or not.
Usecase
What I looked for
I was searching for a method that return
DeeplinkResult
but not launching activities inside the method, so that the returnedDeeplinkResult
can be used for general purposes.Example
Is there any workaround for such usecase please?
The text was updated successfully, but these errors were encountered: