pub enum UsageGainReporterRequest {
RegisterListener {
device_unique_id: String,
usage: Usage,
usage_gain_listener: ClientEnd<UsageGainListenerMarker>,
control_handle: UsageGainReporterControlHandle,
},
RegisterListener2 {
device_unique_id: String,
usage: Usage2,
usage_gain_listener: ClientEnd<UsageGainListenerMarker>,
control_handle: UsageGainReporterControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: UsageGainReporterControlHandle,
method_type: MethodType,
},
}
Expand description
A protocol for setting up watchers of usage gain.
Variants§
RegisterListener
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.
Fields
usage_gain_listener: ClientEnd<UsageGainListenerMarker>
control_handle: UsageGainReporterControlHandle
RegisterListener2
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.
Fields
usage_gain_listener: ClientEnd<UsageGainListenerMarker>
control_handle: UsageGainReporterControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: UsageGainReporterControlHandle
method_type: MethodType
Implementations§
Source§impl UsageGainReporterRequest
impl UsageGainReporterRequest
pub fn into_register_listener( self, ) -> Option<(String, Usage, ClientEnd<UsageGainListenerMarker>, UsageGainReporterControlHandle)>
pub fn into_register_listener2( self, ) -> Option<(String, Usage2, ClientEnd<UsageGainListenerMarker>, UsageGainReporterControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL