Throughout this documentation, a "user interface client" refers to code that
creates a graphical user interface and responds to input events, such as mouse,
touch, and keyboard.

## A UI is composed with multiple APIs

These UI functions are divided between a number of FIDL APIs to serve a
broad spectrum of [constituents](https://fuchsia.dev/docs/contribute/governance/api_council#values);
hence there is no single "UI API". Instead, a client implements its UI using
the APIs it needs.

![user interface client](https://fuchsia.dev/static/fuchsia-src/concepts/ui/images/ui-client.png)

Some examples include:
\* [fuchsia.ui.composition.Flatland](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.ui.composition/flatland.fidl) for views and graphics
\* [fuchsia.ui.views.ViewRefFocused](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.ui.views/view_ref_focused.fidl)
and [Focuser](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.ui.views/focuser.fidl) for view focus management
\* [fuchsia.ui.pointer](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.ui.pointer) for mouse and touch
\* [fuchsia.ui.input3.Keyboard](https://cs.opensource.google/fuchsia/fuchsia/+/main:/sdk/fidl/fuchsia.ui.input3/keyboard.fidl) for keyboard

## A UI client has a View to place graphical content

A UI client creates a


[](https://fuchsia.dev/docs/glossary#view)


in the global view tree, and
within that view, presents graphical content to the user via a display.

For more information, see the [views](https://fuchsia.dev/docs/concepts/ui/scenic/views) documentation.

## A UI client receives input events and reacts appropriately

The Fuchsia platform may send a UI client a sequence of input events initiated
by a user. Typically these input events are directed at the UI client's view. A
UI client is then responsible for reacting to input events that are directed to
its view; for example, it can update its graphical content based on a mouse
click event.
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/concepts/ui/ui-client.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/concepts/ui/ui-client.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/concepts/ui/ui-client.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/concepts/ui/ui-client.md "Edit the source code of this page")