PlatformX
A multi-platform lightweight tool which helps you check the platform your app is running on.
Example
Android | Web |
---|---|
![]() | ![]() |
#
Usage
Include platformx as a dependency into your project.
-
Version 1:
PlatformX.platform
This will return a
PlatformEnum
which is the platform your app is currently running on.
-
Version 2:
PlatformX.is[Android/IOS/Web/Windows/Linux/MacOS/Fuschia]
This will return TRUE or FALSE, depending if you are running on that specific platform.