Expand description
Blinc Android Platform
Android platform implementation for Blinc UI framework.
This crate implements the blinc_platform traits for Android,
providing touch input, lifecycle management, and window handling
via the Android NDK.
§Example
ⓘ
use blinc_platform::prelude::*;
use blinc_platform_android::AndroidPlatform;
// AndroidPlatform is created internally by the android_main entry point
// Use the event loop to handle events:
event_loop.run(|event, window| {
match event {
Event::Frame => {
// Render frame
}
Event::Lifecycle(LifecycleEvent::Suspended) => {
// App going to background
}
_ => {}
}
ControlFlow::Continue
})Re-exports§
pub use assets::AndroidAssetLoader;pub use event_loop::AndroidEventLoop;pub use event_loop::AndroidWakeProxy;pub use jni_utils::get_display_density;pub use jni_utils::get_display_dpi;pub use jni_utils::is_dark_mode;pub use window::AndroidWindow;pub use input::GestureDetector;
Modules§
- activity
- Android Activity integration
- assets
- Android asset loading via NDK AssetManager
- event_
loop - Android event loop implementation
- input
- Android touch input handling
- input_
convert - Input conversion utilities
- jni_
bridge - Kotlin JNI Bridge for Blinc
- jni_
utils - JNI utilities for Android platform
- native_
bridge - Android Native Bridge Adapter
- window
- Android window implementation
Structs§
- Android
Platform - Android platform implementation