pub fn new() -> Self {
        let media_buttons_handler = Self {
            listeners: Arc::new(Mutex::new(Vec::new())),
            last_event: Arc::new(Mutex::new(None)),
        };

        media_buttons_handler
    }
/// Creates a new [`MediaButtonsHandler`] that sends media button events to listeners.
Creates a new [`MediaButtonsHandler`] that sends media button events to listeners.
Creates a new [ ` MediaButtonsHandler ` ] that sends media button events to listeners .
pub fn new() -> Self {
        let media_buttons_handler = Self {
            listeners: Arc::new(Mutex::new(Vec::new())),
            last_event: Arc::new(Mutex::new(None)),
        };
        media_buttons_handler
    }
pub fn new ( ) -> Self { let media_buttons_handler = Self { listeners : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) , last_event : Arc :: new ( Mutex :: new ( None ) ) , } ; media_buttons_handler }
Creates a new [`MediaButtonsHandler`] that sends media button events to listeners.
Creates a new [ ` MediaButtonsHandler ` ] that sends media button events to listeners .