SourceEnum OperatingSystem
from egui import OperatingSystemOperatingSystem.Android
OperatingSystem.IOS
OperatingSystem.Mac
OperatingSystem.Nix
OperatingSystem.Unknown
OperatingSystem.WindowsAn enum of common operating systems.
Variants§
OperatingSystem.Android Enum value§
OperatingSystem.IOS Enum value§
OperatingSystem.Mac Enum value§
OperatingSystem.Nix Enum value§
OperatingSystem.Unknown Enum value§
OperatingSystem.Windows Enum value§
Methods§
@staticmethod
def all() -> list[OperatingSystem]§
@staticmethod
def default() -> OperatingSystem§
Source@staticmethod
def from_target_os() -> OperatingSystem§
Uses the compile-time target_arch to identify the OS.
Source@staticmethod
def from_user_agent(user_agent: str) -> OperatingSystem§
Helper: try to guess from the user-agent of a browser.
Sourcedef is_mac(self, /) -> bool§
Are we either macOS or iOS?