template <>
class Server
Defined at line 519 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/natural_messaging.h
Public Methods
void GetInputReportsReader (GetInputReportsReaderRequest & request, GetInputReportsReaderCompleter::Sync & completer)
Open a new InputReportsReader on this device. Each reader receives
their own reports.
void GetDescriptor (GetDescriptorCompleter::Sync & completer)
Gets the device descriptor for this device.
void SendOutputReport (SendOutputReportRequest & request, SendOutputReportCompleter::Sync & completer)
Send a single output report to the device. This will throw an error
if the output report does not follow the OutputDescriptor.
void GetFeatureReport (GetFeatureReportCompleter::Sync & completer)
Get the feature report for a given device. This requests the state of
the device's features.
void Server ()
Defined at line 522 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/natural_messaging.h
void SetFeatureReport (SetFeatureReportRequest & request, SetFeatureReportCompleter::Sync & completer)
Set the feature report for a given device. This sets the state of
the device's features.
void GetInputReport (GetInputReportRequest & request, GetInputReportCompleter::Sync & completer)
For general cases, InputReportReader is the preferred way of getting
InputReports. For devices that don't send InputReports naturally, this
method can be used to request a report from the device type indicated.
Does not block, and returns ZX_ERR_NOT_SUPPORTED if `GetInputReport` or
`device_type` are not supported.
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 523 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/natural_messaging.h