tree: 8e2db321b9a8d5bd7776ad6bfa39b47f0857b342 [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. README.md
src/session/examples/elements/element_proposer/README.md

element_proposer

Reviewed on: 2020-02-04

The element_proposer is a component that uses the ElementManager service to request that Elements get added to the session. A session can contain any number of ElementProposer components. Notably, a component runner may act as an ElementProposer.

ElementProposers commonly act as gateways to make software ecosystems available to a product. For example, a component acting as a voice assistant would propose elements in response to voice commands.

In this example, the fuchsia-pkg://fuchsia.com/element_proposer#meta/element_proposer.cm component is configured to use the ElementManager service. This is done by using the ElementManager protocol in the element_proposer.cml file.

Once the element proposer is started, it connects to the ElementManager service and attempts to add an element to the session. The element proposer can propose both v1 and v2 components the session.