template <>
class WireServer
Defined at line 20973 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_media::UsageGainReporter>|
and |::fidl::ServerEnd
<
::fuchsia_media::UsageGainReporter>|).
Public Methods
void RegisterListener (::fuchsia_media::wire::UsageGainReporterRegisterListenerRequest * request, RegisterListenerCompleter::Sync & completer)
Connects a listener to a stream of usage gain setting changes
for `usage` on the device identified by `device_token`. Usage
Gain is not set directly by any client; it is a translation of
the usage volume setting for each device, summed with active
muting/ducking gain adjustments.
Devices may map the same volume level to different dbfs, so
a `device_unique_id` is needed to identify the device.
`AudioDeviceEnumerator` provides programmatic access to devices
and their unique ids if it is necessary for a client to select
an id at runtime.
void RegisterListener2 (::fuchsia_media::wire::UsageGainReporterRegisterListener2Request * request, RegisterListener2Completer::Sync & completer)
Connects a listener to a stream of usage gain setting changes
for `usage` on the device identified by `device_token`. Usage
Gain is not set directly by any client; it is a translation of
the usage volume setting for each device, summed with active
muting/ducking gain adjustments.
Devices may map the same volume level to different dbfs, so
a `device_unique_id` is needed to identify the device.
`AudioDeviceEnumerator` provides programmatic access to devices
and their unique ids if it is necessary for a client to select
an id at runtime.
void WireServer ()
Defined at line 20976 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h
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 ~WireServer ()
Defined at line 20977 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h