forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.lcdoc
More file actions
34 lines (22 loc) · 1.01 KB
/
environment.lcdoc
File metadata and controls
34 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Name: environment
Type: function
Syntax: the environment
Syntax: environment()
Summary: Returns the type of running environment the stack is in.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
the environment
Example:
if the environment is "development" then showDevelopOptions
Returns (enum): The <environment> function returns one of:
-"development" : The stack is running under the development environment.
-"standalone application" : The stack is running as a standalone application.
-"helper application" : LiveCode is running as a standalone with secureMode set to true.
-"browser" : The stack is running as a LiveCode applet.
-"mobile" : The stack is running on a mobile device.
-"command line" : The stack was launched from the command line with :ui
Description:
Use the <environment> function to change a stack's behavior depending on how the stack was opened.
References: version (function), revLicenseType (function), buildNumber (function), systemVersion (function)