feInfo
Queries general front-end properties.
Syntax
ui.Interface.frontCall("standard", "feInfo",
[name], [result])
- name - The name of the property.
- result - The value of the property.
Usage
The feInfo
front call returns a front-end property value depending on the
property name passed in as the parameter.
feInfo
options take an optional parameter, such as
screenResolution
:CALL ui.Interface.frontCall("standard", "feInfo", ["screenResolution", 2], [resolution])
Property name | Description | GDC | GBC | GMA | GMI |
---|---|---|---|---|---|
dataDirectory |
Returns the directory name that can be used for temporary files on the front-end side. This directory is cleaned at front-end start-up and end, and is common to all front-end instances, except for the Genero Browser Client (GBC). The possible values returned are:
|
Yes | No | Yes | Yes |
dictionariesDirectory |
Returns the directory name where spell checking dictionary files are located. This parameter is only supported by GDC, for the A program can query the |
Yes | N/A | N/A | N/A |
deviceModel |
Returns the name of the device, for example "iPad4,5". | Yes | No | Yes | Yes |
deviceId |
|
Yes | No | Yes | Yes |
feName |
The code identifying the type of front-end
component.
Note: Consider using ui.Interface.getFrontEndName() instead, to save a network
roundtrip.The possible values returned are:
|
Yes | Yes | Yes | Yes |
fePath |
The installation directory of the front-end executable.
Important: The installation path returned by this
front call may change in future versions, do not base application code on this. On mobile devices,
consider using the os.Path.pwd utility function to get the application
working directory when executing programs.
|
Yes | No | Yes | Yes |
freeStorageSpace |
Returns the number of bytes available on the device. | Yes | No | Yes | Yes |
iccid |
|
N/A | N/A | Yes | Yes |
imei |
|
N/A | N/A | Yes | Yes |
ip |
Returns the IP address of the network interface used for the GUI connection. For mobile platforms, this is the preferred IP address of the
device. If there is WIFI, either the IPv4 address is returned (for example:
|
Yes | No | Yes | Yes |
isActiveX |
Returns " For Genero Mobile clients, the return value will always be
" |
Yes | No | Yes | Yes |
numScreens |
Number of screens available on the front-end platform. On typical front-end platforms and devices, the number of screens is 1. In some rare cases, a desktop computer can be configured with more than one screen. |
Yes | No | No | No |
osType |
The operating system type where the front-end is running. Possible return values include " |
Yes | Yes | Yes | Yes |
osVersion |
The version of the operating system. Example of returned values: " |
Yes | No | Yes | Yes |
ppi |
Returns the screen pixel density of the front-end platform (Pixels Per Inch). This front call takes an optional screen number as parameter (1 is the default).
|
Yes | No | Yes | Yes |
screenResolution |
Returns the screen resolution of the front-end platform. This front call takes an optional screen number as parameter (1 is the default). Example of returned values: " Note: For mobile devices, the value can change depending on the
device orientation.
|
Yes | Yes | Yes | Yes |
target |
Returns the build platform target code name, identifying the
operating system the front-end binary was compiled. This
front call is provided for debugging purpose, do not base
code on the returned value, it can change if the target OS
version is upgraded for example. Use the
Example of returned values:
Note: For GBC, it returns the same value as osType. |
Yes | Yes | Yes | Yes |
windowSize |
Returns the current size of the front-end view-port.
Example of returned values:
" |
Yes | Yes | Yes | Yes |
userPreferredLang |
Returns the language and territory of the locale defined on the front-end platform, in the
|
Yes | Yes | Yes | Yes |