System_Info()
Syntax: _System_Info(OperatingSystem_Parameter)
Purpose: Retrieves a wide variety of details about the device and environment your app is running in.
Parameters (OperatingSystem_Parameter): Here are some of the key ones:
Core System Details:
"appName", "appVersionString": App name and version as displayed to the user.
"build": Corona build string.
"deviceID": Device-specific identifier (behavior varies across platforms).
"model", "name": Device model and human-readable name.
"platform": Operating system (e.g., "android", "ios")
"platformVersion": OS version string.
Hardware:
"architectureInfo": CPU architecture.
"manufacturer": Device manufacturer.
"maxTextureSize": Maximum supported texture size in pixels.
"textureMemoryUsed": Current texture memory usage.
Android-Specific:
"androidApiLevel": Android API level (OS version).
"androidAppVersionCode", "androidAppPackageName": App version code and package name.
"androidDisplay...": Detailed display metrics (DPI, resolution in inches).
"androidGrantedAppPermissions", "androidDeniedAppPermissions": Listing of granted/denied permissions.
iOS-Specific:
"iosIdentifierForVendor": Device identifier.
"gpuSupportsHighPrecisionFragmentShaders": Support for high precision shaders.
"GL_...": Details about the device's OpenGL implementation.
System_Language() and System_Language_Code()
Syntax:
_System_Language()
_System_Language_Code()
Purpose: Retrieve the user's configured language settings on their device.
Behavior:
System_Language()
provides the full language name (e.g., "English",
"es-ES")
System_Language_Code()
returns the shorter language code (e.g., "en", "es")
Memory_Usage()
Syntax: _Memory_Usage()
Purpose: Displays a popup providing information about the current memory usage of your app, split into System and Texture memory categories. This is useful for debugging and optimization.
Idle_Timer()
Syntax: _Idle_Timer(true_or_false)
Purpose: Enables or disables the device's idle timer, which dims the screen and puts the device to sleep after a period of inactivity.
Parameters:
true (default) activates the idle timer.
false deactivates the idle timer.
Debug_Information()
Syntax: _Debug_Information(status, ignore_consecutive_duplicated_errors)
Purpose: Controls the display of various debug information within the app. (Likely only works in the Corona Simulator).
Parameters:
status: True to enable debugging overlays, false to disable.
ignore_consecutive_duplicated_errors (Optional): Boolean to control repeated error display.
App_Version()
Syntax: _App_Version()
Purpose: Retrieves the version number of your app.