class UsageWatcher

Defined at line 24596 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/hlcpp/fuchsia/media/cpp/fidl.h

A protocol for listening to changes to the policy state of an audio usage.

User actions, such as lowering the volume or muting a stream, are not reflected in this API.

Public Methods

void ~UsageWatcher ()
void OnStateChanged (::fuchsia::media::Usage usage, ::fuchsia::media::UsageState state, OnStateChangedCallback callback)

Called on first connection and whenever the watched usage changes. The provided

usage will always be the bound usage; it is provided so that an implementation of

this protocol may be bound to more than one usage.

Clients must respond to acknowledge the event. Clients that do not acknowledge their

events will eventually be disconnected.