
59
Class Reference
4.2.6.2
onKey
The
onKey
property is a property of type function that is used by
gui.Form
,
gui.Menu
,
and
gui.Text
to provide control for any key not consumed by the active control. Key
constants are defined in section 0.
Format:
function processKey(key)
{
/* processing code */
}
<MenuOrForm_name>.onKey = processKey;
4.3
reader
The
reader
object models the handheld hardware and firmware. Use the methods and
properties of the reader object to command the behavior of the handheld such as:
Executing commands on the handheld
Running a JavaScript on the handheld
Reading and changing handheld settings
Obtaining data decoded from bar codes
4.3.1
Methods
This section documents the methods defined for the handheld's
reader
object.
4.3.1.1
beep
The
beep
method causes the handheld to beep.
Format:
reader.beep(numBeeps);
Where:
numBeeps
– number; number of beeps.
Note: This method does not return a value.
Example:
reader.beep(3);
Cause the reader to beep 3 times