Trying to untangle compose navigation deep links; ...
# compose-android
z
Trying to untangle compose navigation deep links; does anyone have any insight on where deep link handling is actually added to the activity (guessing that its
addOnNewIntentListener
, but where is that called by navigation compose?).
a
Navigation only handles deep link on activity creation. See the doc.
z
So it basically takes the
intent
when activity calls
onCreate
?
When using
standard
launch mode, Navigation automatically handles deep links by calling
handleDeepLink()
to process any explicit or implicit deep links within the
Intent
This is effectively what Im trying to understand the how of.
a
Code here.
z
Thanks, thats what lead me to ask - Im looking for where
onGraphCreated
(
graph.set
) is called.
a
z
Sorry, and thank you! I passed by
handleDeepLink(*activity!!.intent*)
a bunch of times without realizing thats where the intent came from; I thought it was passed in earlier in the call chain.