/// Sends media button events to media button listeners.
///
/// # Parameters
/// - `event`: The event to send to the listeners.
Sends media button events to media button listeners.
Sends media button events to media button listeners .
async fn send_event_to_listeners(&self, event: &fidl_ui_input::MediaButtonsEvent) {
        let listeners = self.listeners.lock().await;
        for listener in listeners.iter() {
            if let Err(e) = listener.on_event(event.clone()).await {
                fx_log_err!("Error sending MediaButtonsEvent to listener: {:?}", e);
            }
        }
    }
async fn send_event_to_listeners ( & self , event : & fidl_ui_input :: MediaButtonsEvent ) { let listeners = self . listeners . lock ( ) . await ; for listener in listeners . iter ( ) { if let Err ( e ) = listener . on_event ( event . clone ( ) ) . await { fx_log_err ! ( " " e ) ; } } }
Sends media button events to media button listeners.
Sends media button events to media button listeners .
&self
event
&fidl_ui_input::MediaButtonsEvent
The event to send to the listeners.
The event to send to the listeners .