DeviceCaps Class
Provides information about the device.
Use the global Device
variable to access these reactive variables. For example, to include something only on Android:
<Instance IsEnabled="Device.isAndroid">
<CameraView/>
</Instance>
The properties are:
- isAndroid
(bool): True if running on Android OS, false otherwise
- isIOS
(bool): True if running on iOS OS, false otherwise
- isMac
(bool): True if running on Mac OS, false otherwise
- isWindows
(bool): True if running on Windows OS, false otherwise
- isPreview
(bool): True if running inside Preview
On iOS and Android the following are also available:
- osVersion
(int3): (major, minor, revision) Version of the operating system. (Android: This is for information, stats, and/or debug purposes only. As it doesn't reliably reflect any system features it should not be used for any conditionals.)
On Android:
- apiLevel
(int): API Level supported by the device
Location
- Namespace
- Fuse.Reactive
- Package
- Fuse.Reactive.Expressions 2.9.1