class Manager

Defined at line 3148 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/hlcpp/fuchsia/element/cpp/fidl.h

An interface used to add elements to a session.

An *element* is a component that is expected to be instantiated as a child

of the session and (optionally) to interact with the user in some way.

The session will typically implement `Manager` and route it where needed.

For tools like `ffx session add` to work, the session must expose `Manager`

to its parent.

For example, a component in the session may be a non-interactive application that

listens to the network for a command to display an element to the user.

When it receives the command, the component calls `ProposeElement()`.

Public Members

static const char[] Name_

Public Methods

void ~Manager ()
void ProposeElement (::fuchsia::element::Spec spec, ::fidl::InterfaceRequest< ::fuchsia::element::Controller> controller, ProposeElementCallback callback)
void RemoveElement (::std::string name, RemoveElementCallback callback)

Removes the element identified by `name` from the session. If the element is a persistent

element, it is removed permanently. Any persistent storage that the element might have used

is left untouched.