bevy/crates/bevy_window/src
François 7d504b89c3
Application lifetime events (suspend audio on Android) (#10158)
# Objective

- Handle pausing audio when Android app is suspended

## Solution

- This is the start of application lifetime events. They are mostly
useful on mobile
- Next version of winit should add a few more
- When application is suspended, send an event to notify the
application, and run the schedule one last time before actually
suspending the app
- Audio is now suspended too 🎉 



https://github.com/bevyengine/bevy/assets/8672791/d74e2e09-ee29-4f40-adf2-36a0c064f94e

---------

Co-authored-by: Marco Buono <418473+coreh@users.noreply.github.com>
2023-10-23 20:47:55 +00:00
..
cursor.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
event.rs Application lifetime events (suspend audio on Android) (#10158) 2023-10-23 20:47:55 +00:00
lib.rs Application lifetime events (suspend audio on Android) (#10158) 2023-10-23 20:47:55 +00:00
raw_handle.rs Fix the doc warning attribute and document remaining items for bevy_window (#9933) 2023-09-27 07:08:09 +00:00
system.rs fix typo (#9651) 2023-08-31 07:20:53 +00:00
window.rs Fix typos. (#9922) 2023-09-25 18:35:46 +00:00