machine | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the type of hardware the application is running on. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: string Function: processor Glossary: application, return Control Structure: function | ||||||
Description | Use the machine function to detect what type of system your application is running on. On Mac OS systems, the machine function uses the Gestalt() system call to determine the machine type. On Unix systems, the machine function uses the uname() system function. On Android devices, the machine function returns the manufacturer's name for the device. For example, if running on a Google Nexus One, the string is "Nexus One". |