Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_android/src/lib.rs
6595 views
1
//! Provides Android functionality for Bevy Engine.
2
3
#[cfg(target_os = "android")]
4
pub use android_activity;
5
6
/// [`AndroidApp`] provides an interface to query the application state as well as monitor events
7
/// (for example lifecycle and input events).
8
#[cfg(target_os = "android")]
9
pub static ANDROID_APP: std::sync::OnceLock<android_activity::AndroidApp> =
10
std::sync::OnceLock::new();
11
12