bevy/crates/bevy_winit/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
..
accessibility.rs Various accessibility API updates. (#9989) 2023-10-02 21:22:52 +00:00
converters.rs Add option to toggle window control buttons (#9083) 2023-07-23 01:02:40 +00:00
lib.rs Application lifetime events (suspend audio on Android) (#10158) 2023-10-23 20:47:55 +00:00
system.rs Rename RemovedComponents::iter/iter_with_id to read/read_with_id (#9778) 2023-09-15 12:37:20 +00:00
web_resize.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
winit_config.rs Change WinitPlugin defaults to limit game update rate when window is not visible (#7611) 2023-08-02 23:41:23 +00:00
winit_windows.rs Various accessibility API updates. (#9989) 2023-10-02 21:22:52 +00:00