<br />

Added: 7

## **PROTOCOLS**

## AnnotationController

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=68)*

An interface to create, read, update, and delete annotations,
typically on an element or its view.

<br />

### GetAnnotations

Returns the current `Annotations` for the element.

- error `GetAnnotationsError` if the annotations could not be returned.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_GetAnnotations_Result` |

### UpdateAnnotations

Adds, updates, and removes annotations.

The server is expected to adhere to the following conventions:

- If a key in `annotations_to_set` is new, a new annotation is added
- If a key in `annotations_to_set` already exists, the annotation value is updated
- If a key in `annotations_to_delete` does not exist, it is ignored

The same key cannot appear twice in a call to UpdateAnnotations(). In other words,
to set two Annotations with matching keys is illegal, as is an attempt to set an
Annotation and also delete it.

If the operation results in an error, the annotations remain unchanged,
and will not be partially updated.

- error `UpdateAnnotationsError.INVALID_ARGS` if the same key exists in both `annotations_to_set` and `annotations_to_delete`.
- error `UpdateAnnotationsError.INVALID_ARGS` if a key in `annotations_to_set` or `annotations_to_delete` has an empty namespace.
- error `UpdateAnnotationsError.INVALID_ARGS` if an `AnnotationValue.buffer` in `annotations_to_set` could not be read.
- error `UpdateAnnotationsError.TOO_MANY_ANNOTATIONS` if the operation results in more than `MAX_ANNOTATIONS_PER_ELEMENT` annotations existing.

#### Request

| Name | Type |
|---|---|
| `annotations_to_set` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` |
| `annotations_to_delete` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationKeys` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_UpdateAnnotations_Result` |

### WatchAnnotations

Returns the full set of `Annotations` when one or more of them have changed, or
when this method is called by the client for the first time.

This operation does not block other requests from the client, but only one
`WatchAnnotations` request at a time can be made on a connection. If the
client makes a second `WatchAnnotations` request before waiting for the
previous request to complete, the connection will be closed.

- error `WatchAnnotationsError` if the annotations could not be returned.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_WatchAnnotations_Result` |

## Controller

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=122)*

An interface that gives clients of `Manager` (element proposers) control
over the proposed element's lifecycle and annotations.

## Lifecycle

The client must keep `Controller` connected to ensure the element
remains in the session and is not destroyed. Once `Controller` is closed,
the element and its component will be terminated. The element may also terminate
itself, which will cause `Controller` to close.

<br />

### GetAnnotations

Returns the current `Annotations` for the element.

- error `GetAnnotationsError` if the annotations could not be returned.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_GetAnnotations_Result` |

### UpdateAnnotations

Adds, updates, and removes annotations.

The server is expected to adhere to the following conventions:

- If a key in `annotations_to_set` is new, a new annotation is added
- If a key in `annotations_to_set` already exists, the annotation value is updated
- If a key in `annotations_to_delete` does not exist, it is ignored

The same key cannot appear twice in a call to UpdateAnnotations(). In other words,
to set two Annotations with matching keys is illegal, as is an attempt to set an
Annotation and also delete it.

If the operation results in an error, the annotations remain unchanged,
and will not be partially updated.

- error `UpdateAnnotationsError.INVALID_ARGS` if the same key exists in both `annotations_to_set` and `annotations_to_delete`.
- error `UpdateAnnotationsError.INVALID_ARGS` if a key in `annotations_to_set` or `annotations_to_delete` has an empty namespace.
- error `UpdateAnnotationsError.INVALID_ARGS` if an `AnnotationValue.buffer` in `annotations_to_set` could not be read.
- error `UpdateAnnotationsError.TOO_MANY_ANNOTATIONS` if the operation results in more than `MAX_ANNOTATIONS_PER_ELEMENT` annotations existing.

#### Request

| Name | Type |
|---|---|
| `annotations_to_set` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` |
| `annotations_to_delete` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationKeys` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_UpdateAnnotations_Result` |

### WatchAnnotations

Returns the full set of `Annotations` when one or more of them have changed, or
when this method is called by the client for the first time.

This operation does not block other requests from the client, but only one
`WatchAnnotations` request at a time can be made on a connection. If the
client makes a second `WatchAnnotations` request before waiting for the
previous request to complete, the connection will be closed.

- error `WatchAnnotationsError` if the annotations could not be returned.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_WatchAnnotations_Result` |

## GraphicalPresenter

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=11)*

An interface used to instruct a server to present graphical views, and observe
and control the view's lifecycle.

<br />

### PresentView

Presents the view described by `view_spec`.

If `view_controller_request` is provided, it will be connected to a `ViewController`
implemented by the `GraphicalPresenter` server. When the view is dismissed,
the `ViewController` channel is closed with a `ZX_OK`, at which point it is safe
to clean up resources backing the view. To dismiss the view, the client should
call `ViewController.Dismiss()` and wait for the `ZX_OK` epitaph.
Not providing a `view_controller_request` handle will make it impossible for the
client to observe the view's lifecycle.

- `view_spec` describes the view to present
- `annotation_controller` a handle to an `AnnotationController`, allowing the `GraphicalPresenter` server to observe and update the view's annotations.
- `view_controller_request` an optional request for a controller for the view

<!-- -->

- error `view_spec` must contain `view_holder_token` and `view_ref` for Gfx views, OR `viewport_creation_token` for Flatland views, but never both. If both are set, error `PresentViewError.INVALID_ARGS` is returned.
- error `PresentViewError.INVALID_ARGS` if `spec.view_holder_token` or `spec.view_ref` are missing or invalid.

#### Request

| Name | Type |
|---|---|
| `view_spec` | `https://fuchsia.dev/reference/fidl/fuchsia.element#ViewSpec` |
| `annotation_controller` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController?` |
| `view_controller_request` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.element#ViewController?` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#GraphicalPresenter_PresentView_Result` |

## Manager

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=39)*

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()`.

<br />

### ProposeElement

Added: 19

#### Request

| Name | Type |
|---|---|
| `spec` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Spec` |
| `controller` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.element#Controller?` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Manager_ProposeElement_Result` |

### RemoveElement

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.
Added: 19

#### Request

| Name | Type |
|---|---|
| `name` | `string` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Manager_RemoveElement_Result` |

## ViewController

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=71)*

Gives clients of `GraphicalPresenter` control over an individual view
presented through `PresentView()`.

<br />

### Dismiss

Instructs the presenter to dismiss the associated view. Once dismissed,
the `ViewController` channel is closed with a `ZX_OK` epitaph. At this
point, it is safe to clean up any resources (such as terminating
a component) backing the view.

Clients should call `Dismiss()` prior to closing the `ViewController`
channel themselves.

#### Request

\<EMPTY\>

### OnPresented

An event that signals that the view is now being presented.

#### Response

\<EMPTY\>

## **STRUCTS**

### Annotation [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=52)*

An annotation defined dynamically by key/value pair.

The Session Framework does not constrain the contents of `key` and `value`
in any way. Cooperating components that exchange annotations must define
and validate annotation entries based on their own conventions.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `key` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationKey` | An identfier for this annotation. | No default |
| `value` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationValue` | The content of this annotation. | No default |

### AnnotationController_GetAnnotations_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=100)*

| Field | Type | Description | Default |
|---|---|---|---|
| `annotations` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` |   | No default |

### AnnotationController_UpdateAnnotations_Response

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=95)*

\<EMPTY\>

### AnnotationController_WatchAnnotations_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=113)*

| Field | Type | Description | Default |
|---|---|---|---|
| `annotations` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` |   | No default |

### AnnotationKey

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=16)*

The key of an [fuchsia.element](https://fuchsia.dev/reference/fuchsia.element/)/[Annotation](https://fuchsia.dev/reference/fuchsia.element/#Annotation).

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `namespace` | `string:128` | A namespace that disambiguates groups of keys across clients. This is intended to group related keys together under the same identifier, and avoid naming collisions. For example, a session may use a custom namespace to define annotations that are specific to its implementation. The namespace is required and must be non-empty. The namespace "global" is represents the global namespace, reserved for annotations common across many products and session components. To ensure compatibility, clients should use a unique namespace, like a UUID or the client's component URL, when introducing new keys. | No default |
| `value` | `string:128` | An identifier for this annotation, uniquely identifying the annotation within `namespace`. | No default |

### GraphicalPresenter_PresentView_Response

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=35)*

\<EMPTY\>

### Manager_ProposeElement_Response

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=67)*

\<EMPTY\>

### Manager_RemoveElement_Response

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=75)*

\<EMPTY\>

## **ENUMS**

### GetAnnotationsError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=131)*

An error returned from `ElementController/GetAnnotations`.

<br />

| Name | Value | Description |
|---|---|---|
| ### BUFFER_READ_FAILED | `1` | The `AnnotationValue.buffer` of an annotation could not be read. |

### ManagerError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=101)*
Added: 19

<br />

| Name | Value | Description |
|---|---|---|
| ### INVALID_ARGS | `1` | The element spec was malformed. |
| ### NOT_FOUND | `2` | The element's component URL could not be resolved. |
| ### UNABLE_TO_PERSIST | `3` | Unable to persist a proposed element because there was an issue writing to persistent storage. The proposed element will not have been started. |

### PresentViewError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=40)*

An error returned when `GraphicalPresenter` fails to present a view.

<br />

| Name | Value | Description |
|---|---|---|
| ### INVALID_ARGS | `1` | The provided `ViewSpec` is invalid. |

### UpdateAnnotationsError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=120)*

An error returned from `AnnotationController/UpdateAnnotations`

<br />

| Name | Value | Description |
|---|---|---|
| ### INVALID_ARGS | `1` | The arguments passed to `UpdateAnnotations` are malformed. |
| ### TOO_MANY_ANNOTATIONS | `2` | The total number of annotations will exceed [MAX_ANNOTATIONS_PER_ELEMENT](https://fuchsia.dev/reference/fidl/fuchsia.element#MAX_ANNOTATIONS_PER_ELEMENT) as a result of updating the annotations. |

### WatchAnnotationsError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=138)*

An error returned from `AnnotationController/WatchAnnotations` and
`ElementController/WatchAnnotations`.

<br />

| Name | Value | Description |
|---|---|---|
| ### BUFFER_READ_FAILED | `1` | The `AnnotationValue.buffer` of an annotation could not be read. |

## **TABLES**

### Spec [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=79)*

Description of an element to be added to a session.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `component_url` | `https://fuchsia.dev/reference/fuchsia.url//https://fuchsia.dev/reference/fuchsia.url#Url` | The component URL of the element. Required. |
| ### 2 | `annotations` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` | Initial annotations on the element. Required, but can be an empty vector. If the element manager URL annotation is included (which is allowed, but not necessary), then it *must* match `component_url`. |

### ViewSpec [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=46)*

A description of a view that can be presented by a `GraphicalPresenter`.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `view_holder_token` | `https://fuchsia.dev/reference/fuchsia.ui.views//https://fuchsia.dev/reference/fuchsia.ui.views#ViewHolderToken` | The view holder token for the presented Gfx view. Must be unset for Flatland views. One of `view_holder_token` or `viewport_creation_token` must be set. |
| ### 2 | `view_ref` | `https://fuchsia.dev/reference/fuchsia.ui.views//https://fuchsia.dev/reference/fuchsia.ui.views#ViewRef` | The `ViewRef` of the presented Gfx view. Must be unset for Flatland views. |
| ### 3 | `annotations` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Annotations` | The initial annotations associated with the presented view. Updates to annotations are observed through the `AnnotationController` passed to `PresentView()`. Optional. |
| ### 4 | `viewport_creation_token` | `https://fuchsia.dev/reference/fuchsia.ui.views//https://fuchsia.dev/reference/fuchsia.ui.views#ViewportCreationToken` | The viewport creation token for the presented Flatland view. Must be unset for Gfx views. One of `view_holder_token` or `viewport_creation_token` must be set. |

## **UNIONS**

### AnnotationController_GetAnnotations_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=100)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_GetAnnotations_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#GetAnnotationsError` |   |

<br />

### AnnotationController_UpdateAnnotations_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=95)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_UpdateAnnotations_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#UpdateAnnotationsError` |   |

<br />

### AnnotationController_WatchAnnotations_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=113)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#AnnotationController_WatchAnnotations_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#WatchAnnotationsError` |   |

<br />

### AnnotationValue [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.element/annotations.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=42)*

The value of an [fuchsia.element](https://fuchsia.dev/reference/fuchsia.element/)/[Annotation](https://fuchsia.dev/reference/fuchsia.element/#Annotation).

The actual field used depends on the type of annotation.

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `text` | `string` |   |
| ### 2 | `buffer` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` |   |

<br />

### GraphicalPresenter_PresentView_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.element/graphical_presenter.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/graphical_presenter.fidl;l=35)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#GraphicalPresenter_PresentView_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#PresentViewError` |   |

<br />

### Manager_ProposeElement_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=67)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Manager_ProposeElement_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#ManagerError` |   |

<br />

### Manager_RemoveElement_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.element/element_manager.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=75)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.element#Manager_RemoveElement_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.element#ManagerError` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [ANNOTATION_KEY_NAME](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=16) | `name` | `String` | The name of the element in its collection. If not provided to `ProposeElement`, a random name is chosen. Added: 19 |
| [ANNOTATION_KEY_PERSIST_ELEMENT](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=20) | `persist_element` | `String` | If present, the element will persist over a reboot. Added: 19 |
| [ANNOTATION_KEY_URL](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=24) | `url` | `String` | The component URL of the element. Added: 19 |
| [MANAGER_NAMESPACE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/element_manager.fidl;l=9) | `element_manager` | `String` | Added: 19 |
| [MAX_ANNOTATIONS_PER_ELEMENT](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=13) | `1024` | `uint32` | Maximum number of annotations for a single element or view. |
| [MAX_ANNOTATION_KEY_NAMESPACE_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=9) | `128` | `uint32` | Maximum length of `AnnotationKey.namespace`. |
| [MAX_ANNOTATION_KEY_VALUE_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=11) | `128` | `uint32` | Maximum length of `AnnotationKey.value`. |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [AnnotationKeys](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=64) | `vector`\[`https://fuchsia.dev/reference/fidl/fuchsia.element#MAX_ANNOTATIONS_PER_ELEMENT`\] | A list of annotation keys. |
| [Annotations](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.element/annotations.fidl;l=61) | `vector`\[`https://fuchsia.dev/reference/fidl/fuchsia.element#MAX_ANNOTATIONS_PER_ELEMENT`\] | A list of annotations on an element. |