This shows you the differences between two versions of the page.
software:gui-designer:tokens [2013/03/22 02:33] jarrod [Predefined Tokens] |
software:gui-designer:tokens [2015/03/19 01:56] (current) jarrod |
||
---|---|---|---|
Line 19: | Line 19: | ||
Using our [[software:iviewer:iviewer-javascript-api|JavaScript API]], you could persist a JSON string across sessions and restore the JSON object on each launch, allowing you to theoretically store any dynamic data across launches. | Using our [[software:iviewer:iviewer-javascript-api|JavaScript API]], you could persist a JSON string across sessions and restore the JSON object on each launch, allowing you to theoretically store any dynamic data across launches. | ||
+ | |||
+ | <WRAP center round important 80%> | ||
+ | NOTE: Data is not persisted across GUI reloads. Each time the GUI is reloaded (when Reload GUI Layout is enabled in [[software:iviewer:settings|iViewer Settings]]), global token values will be reset to their default value (or blank if no value is defined in the Global Token Manager). | ||
+ | </WRAP> | ||
+ | |||
==== Predefined Tokens ==== | ==== Predefined Tokens ==== | ||
There are a number of tokens that are predefined for you in certain cases, depending where the token is being used. | There are a number of tokens that are predefined for you in certain cases, depending where the token is being used. | ||
Line 28: | Line 33: | ||
* ''[ipv6address]'' - The IPv6 Address of the device. | * ''[ipv6address]'' - The IPv6 Address of the device. | ||
* ''[ipv6netmask]'' - The IPv6 subnet mask of the device. | * ''[ipv6netmask]'' - The IPv6 subnet mask of the device. | ||
- | * ''[MACAddress]'' - The MAC Address of the device. | + | * ''[networkSSID]'' - The SSID of the Wi-Fi network currently connected. |
+ | * ''[networkType]'' - The network type currently being used for communications. Eg. None, WiFi, WAN, Other, VPN. | ||
+ | * ''[uuid]'' - The device ID of the mobile device running iViewer that is used for licensing purposes. | ||
+ | * ''[MACAddress]'' - The MAC Address of the device. Note this will return '02:00:00:00:00:00', since Apple denies any app from accessing the MAC Address since iOS7 onwards. | ||
=== Attached to every GUI object === | === Attached to every GUI object === |