Crate bevy_web_keepalive

Source

Structs§

BackgroundTimertimer
The BackgroundTimer contains a Stopwatch that keeps track of the time bevy ran in the background
BackgroundTimerPlugintimer
The BackgroundTimerPlugin plugin creates a timer that keeps track of the time the app isn’t in focus (aka in background).
KeepaliveSettings
The KeepaliveSettings resource can be used to control at runtime how the background worker operates.
VisibilityChangeListenerPluginlistener
The VisibilityChangeListenerPlugin plugin registers a listener that fires when bevy’s visibility is changed (eg. the user switches to a different browser tab)
WebKeepalivePlugin
The WebKeepalivePlugin plugin creates a web worker that runs the main schedule even when the tab is not visible. This allows a game to keep bevy running in the background (eg. when the user is on another browser tab).
WindowVisibilitylistener
The WindowVisibility resource keeps track of the app’s visibility