class Setup

Defined at line 212 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector.configuration/fuchsia.ui.pointerinjector.configuration/hlcpp/fuchsia/ui/pointerinjector/configuration/cpp/fidl.h

A service used by an input pipeline to set up pointer injection into Scenic.

This should be implemented by the component that configures the scene

(Root Presenter or Scene Manager).

Public Members

static const char[] Name_

Public Methods

void ~Setup ()
void GetViewRefs (GetViewRefsCallback callback)

Returns the viewrefs for injection authority (`Config.context`) and injection

destination (`Config.target`).

This only returns when valid context and target views exist.

Typically called just once.

void WatchViewport (WatchViewportCallback callback)

Returns the current viewport. Follows the hanging get pattern.

The first call to this function will return the current viewport, whenever

one exists. Subsequent calls will block until the viewport has been updated.

Flow control: There should only be one outstanding call to this function.

The channel will be closed if an additional call to this function is made

while a call is outstanding.