digium
Handles application launching/hiding, system event listeners, phone functions, and file I/O.
Methods
Name | Description |
---|---|
digium.background | Puts the app in the background, returning the screen to its regular state (e.g., idle). |
digium.foreground | Brings an app into the foreground. If this is called without any arguments, it brings the current app to the foreground. |
digium.readFile | Reads the contents of a file as utf-8 and returns the contents as a string. The filename is relative to the location that is specified (this is a flat directory). |
digium.resetIdleTimer | Resets the timeout that causes the phone to hide apps when there's no keyboard input for a while. This keeps the app alive and should be called periodicallly to prevent the app from being timed out. |
digium.restart | Indicates to the app to reboot itself. |
digium.setLedState | This function can be used to change the state of one of the phone's LED lights. |
digium.writeFile | Writes the string into a file. The filename is relative to the location that is specified (this is a flat directory). |
Properties
Name | Description |
---|---|
digium.phoneModel | This property is set to a string that represents the model of the phone (D40, D45, D50, D60, D62, D65, D70). |