class Device

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

The channel for injecting pointer events into a target.

The associated |Config| applies to injected pointer events.

A |Device| may *inject* pointer events into a target in the scene, but the

*dispatch* of pointer events to UI clients within that target's view tree

will depend on the dispatch policy and the scene topology.

Public Members

static const char[] Name_

Public Methods

void ~Device ()
void Inject (::std::vector< ::fuchsia::ui::pointerinjector::Event> events, InjectCallback callback)

Injects events into a target.

Batching: The caller is expected to batch-inject all events that share the

same timestamp (e.g., multiple finger samples). There may be multiple such

batches per injection call.

Flow control: The caller is allowed at most one in-flight |Inject| call

at at time: subsequent |Inject| calls must wait until the acknowledgment

returns. Non-compliance results in channel closure.

void InjectEvents (::std::vector< ::fuchsia::ui::pointerinjector::Event> events)

Injects events into a target.

Batching: The caller is expected to batch-inject all events that share the

same timestamp (e.g., multiple finger samples). There may be multiple such

batches per injection call.