pelican_ui 1.0.6

A modern UI/UX toolkit optimized for the RAMP stack.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// A constant indicating whether the current target platform is a mobile OS.
///
/// This is set to `true` when compiling for `iOS` or `Android`, and `false` for all other targets.
/// Useful for platform-specific UI logic or conditional compilation.
#[cfg(any(target_os = "ios", target_os = "android"))]
pub const IS_MOBILE: bool = true;

/// A constant indicating whether the current target platform is a mobile OS.
///
/// This is set to `true` when compiling for `iOS` or `Android`, and `false` for all other targets.
/// Useful for platform-specific UI logic or conditional compilation.
#[cfg(not(any(target_os = "ios", target_os = "android")))]
pub const IS_MOBILE: bool = false;