f2prateek/dart

Dealing with implicit intent

jorgebo10 opened this issue · 2 comments

Hi, is it possible to use builder to build implicit intents? It could be a nice feature. Thanks

Hi @jorgebo10 ,

Thanks for the nice question.

It is not possible to use a builder generated at compile time to build implicit intents.

The reasons is that implicit intents are resolved at runtime by the system. So we cannot know which component will be the target one.

We could discuss about custom data defined just for one activity inside the manifest, but:

  1. we are using annotation processing
  2. I don't think that it is the way to go (we might end up having a 1-many relationship). Why not to use explicit intents for this case?

@jorgebo10 do you want to provide some context or your case?