PagePlatform
Inherits: Enum
Supported platforms for a page, including mobile and desktop systems. Each platform corresponds to a specific operating system or environment.
Properties
Methods
-
is_apple
–Whether this PagePlatform instance is an Apple (iOS or macOS) platform.
-
is_desktop
–Whether this PagePlatform instance is a desktop (macOS, Windows, Linux)
-
is_mobile
–Whether this PagePlatform instance is a mobile (iOS or Android) platform.
Properties#
ANDROID = 'android'
#
ANDROID_TV = 'android_tv'
#
IOS = 'ios'
#
LINUX = 'linux'
#
MACOS = 'macos'
#
WINDOWS = 'windows'
#
Methods#
is_apple() -> bool
#
Whether this PagePlatform instance is an Apple (iOS or macOS) platform.
is_desktop() -> bool
#
Whether this PagePlatform instance is a desktop (macOS, Windows, Linux) platform.
is_mobile() -> bool
#
Whether this PagePlatform instance is a mobile (iOS or Android) platform.