Overview
The Stylus Module is used to enable and disable the touch screen.
Syntax
stylus (Module) <META> Syntax |
---|
<META HTTP-EQUIV="Stylus" content="[method]"> |
Stylus JavaScript Object Syntax: |
---|
By default the JavaScript Object 'stylus' will exist on the current page and can be used to interact directly with the stylus. |
To Invoke stylus methods via JavaScript use the following syntax: stylus.method();
e.g. stylus.enable(); |
To set multiple EMML parameters / events on a single line use the following syntax: stylus.setEMML("[Your EMML Tags]");
e.g. stylus.setEMML("enable"); |
Methods
Items listed in this section indicate methods or, in some cases, indicate parameters which will be retrieved.
Name | Description | Default Value |
---|---|---|
enable | Enables the touch screen | Device Dependant |
disable | Disables the touch screen | Device Dependant |
Remarks
Remote Display
This tag does not affect the behaviour of remote display applications for controlling the device
Devices lacking support
Due to platform limitations this API is not available on the following Symbol Technologies' devices:
- Workabout Pro 4
Requirements
RhoElements Version | 1.0.0 or above |
---|---|
Supported Devices | All supported devices. |
Minimum Requirements | Touch Screen. |
Persistence | Persistent - Changes to this module will persist when navigating to a new page. |
HTML/JavaScript Examples
The following example disables the touch screen until the Enter key is pressed:
<META HTTP-EQUIV="Stylus" content="Disabled">
<META HTTP-EQUIV="OnKey0x0d" content="javascript:doTest();">
<SCRIPT>
function doTest()
{
stylus.enable();
}
</SCRIPT>