Can elements from different products add into one session?

22 views
Skip to first unread message

sk huang

unread,
May 27, 2021, 5:19:17 AM5/27/21
to discuss
As we see,  elements are portable across products, so my I add elements from more than one products to one sessio, to cooperating implement one product experience.

Yegor Pomortsev

unread,
May 28, 2021, 3:17:22 AM5/28/21
to sk huang, discuss, component-framework-dev
+component-framework-dev 

Yes, elements are intended to be portable across many products, and in most cases you'll be able to launch the same element on a variety of products that use different sessions.

However, we have not yet defined any standards or specifications to ensure element portability across sessions.

Elements are components, so the session must be able to create a component given its URL. This means:

1. The component needs to be resolved. If the element uses a custom scheme (e.g. `foo://my-element`), the session must use the appropriate resolver.
2. The package that contains the component must be retrievable. Some products may ship with a fixed set of packages, and won't be able to fetch them ephemerally.
3. The session must route capabilities to the element. Some sessions may offer different capabilities to their elements.
4. The session must be able to present the element. e.g. if an element exposes the ViewProvider protocol so that it can be presented graphically, the session actually needs to use this protocol. There could be non-graphical products whose sessions do not understand ViewProvider.


On Thu, May 27, 2021 at 2:19 AM sk huang <forha...@gmail.com> wrote:
As we see,  elements are portable across products, so my I add elements from more than one products to one sessio, to cooperating implement one product experience.

--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/discuss/18f4f706-31ab-430b-a3a2-4de4dbebadb7n%40fuchsia.dev.
Reply all
Reply to author
Forward
0 new messages