Jetpack 导航组件如何使用隐式意图?
How are implicit intents used with the Jetpack Navigation Component?
Jetpack Navigation Component 文档说可以将活动设置为目的地,但他们没有说明使用隐式意图作为目的地。这是否可能,如果可能,它是如何完成的?
根据 Navigation Deep Linking documentation,您可以使用导航图中的 <deepLink>
元素将 URI 与目的地相关联:
<deepLink app:uri="www.example.com/topics/{topicName}"/>
这是目前唯一一种可用于导航架构组件的隐式 Intent。
Jetpack Navigation Component 文档说可以将活动设置为目的地,但他们没有说明使用隐式意图作为目的地。这是否可能,如果可能,它是如何完成的?
根据 Navigation Deep Linking documentation,您可以使用导航图中的 <deepLink>
元素将 URI 与目的地相关联:
<deepLink app:uri="www.example.com/topics/{topicName}"/>
这是目前唯一一种可用于导航架构组件的隐式 Intent。