FHUTargetPlatformExtension extension

Groups native and web-aware predicates for TargetPlatform.

These helpers intentionally account for kIsWeb, so a value such as TargetPlatform.iOS can be interpreted differently on the web versus a native iOS app.

on

Properties

isAndroid bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native Android app.
no setter
isAndroidWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for Android web environments.
no setter
isApple bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for native Apple platforms.
no setter
isAppleWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for Apple browsers.
no setter
isDesktop bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for native desktop targets.
no setter
isDesktopWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for desktop browsers.
no setter
isFuchsia bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native Fuchsia app.
no setter
isFuchsiaWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for Fuchsia browsers.
no setter
isIOS bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native iOS app.
no setter
isIOSWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for iOS web environments.
no setter
isLinux bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native Linux app.
no setter
isLinuxWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for Linux browsers.
no setter
isMacOS bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native macOS app.
no setter
isMacOsWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for macOS browsers.
no setter
isMobile bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for native iOS and Android apps only.
no setter
isMobileWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for iOS and Android browsers.
no setter
isWindows bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for a native Windows app.
no setter
isWindowsWeb bool

Available on TargetPlatform?, provided by the FHUTargetPlatformExtension extension

Returns true for Windows browsers.
no setter