Trait EventLoopBuilderExtAndroid

Source
pub trait EventLoopBuilderExtAndroid {
    // Required methods
    fn with_android_app(&mut self, app: AndroidApp) -> &mut Self;
    fn handle_volume_keys(&mut self) -> &mut Self;
}
Available on android_platform only.

Required Methods§

Source

fn with_android_app(&mut self, app: AndroidApp) -> &mut Self

Associates the [AndroidApp] that was passed to android_main() with the event loop

This must be called on Android since the [AndroidApp] is not global state.

Source

fn handle_volume_keys(&mut self) -> &mut Self

Calling this will mark the volume keys to be manually handled by the application

Default is to let the operating system handle the volume keys

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§