Function egui_demo_lib::is_mobile
source · pub fn is_mobile(ctx: &Context) -> bool
Expand description
Detect narrow screens. This is used to show a simpler UI on mobile devices, especially for the web demo at https://egui.rs.
pub fn is_mobile(ctx: &Context) -> bool
Detect narrow screens. This is used to show a simpler UI on mobile devices, especially for the web demo at https://egui.rs.