Example
// this will log the correct SiteKiosk path on every device
var variables = siteKiosk.system.environment.variableNames;
var pathVariable = variables.siteKioskPath;
var pathString = siteKiosk.system.environment.expand("Your path is $(pathVariable)!");
console.log(pathString);
Members
-
<static> variableNames :string
-
Supported variable names.
Type:
- string
Properties:
Name Type Default Description appDatastring AppData commonApplicationDatastring CommonApplicationData siteKioskPathstring SiteKioskPath externalStoragestring ExternalStorage siteKioskDatastring SiteKioskData siteKioskDownloadsstring SiteKioskDownloads siteKioskConfigstring SiteKioskConfig appCommonDataDirectorystring AppCommonDataDirectory applicationCommonDataDirectorystring ApplicationCommonDataDirectory newlinestring newline deviceModelstring DeviceModel currentLocalestring CurrentLocale computerNamestring ComputerName computerGUIDstring ComputerGUID runningAsLimitedUserstring RunningAsLimitedUser
Methods
-
<static> expand(text) → {string}
-
Expands a text with placeholders using environment variables. Use $(VariableName) as placeholder to be replaced with the actual environment variable.
Parameters:
Name Type Description textstring The text with placeholders to be expanded Returns:
The expanded text- Type
- string
-
<static> getVariable(name) → {string}
-
Gets the value of an environment variable.
Parameters:
Name Type Description namestring Name of the environment variable Returns:
The value of the specified environment variable- Type
- string