Skip to main content

media_key_resume_allowed

Function media_key_resume_allowed 

Source
fn media_key_resume_allowed(token: &ResumeToken) -> bool
Expand description

Decide whether the resume toggle may fire on break end. Only reverse a toggle we actually sent — never blindly hit the media key for a break we did not pause, so we can’t start media the user left paused (#104). Pure so it’s unit-tested without FFI on every OS.