Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 149
onstatuschange event, Function status
![]() |
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 149 highlights
Chapter 4 ePOS-Print API onstatuschange event Registers a callback function to obtain a status change event. Syntax Function (status) Parameter of the callback function Parameters: Name: Object type: status Status Number Example onbatterystatuschange event 4 Registers call back function and obtains battery status change event. (in ePOS-Print Service Ver.2.2 and later) Object type Function (battery) Parameter of the callback function Parameters: Name: Object type: battery Batterystatus Number Example 149
![](/manual_guide/products/epson-p60ii-eposprint-api-user-s-manual-tmi-firmware-41-a0c01f3/149.png)
149
Chapter 4
ePOS-Print API
4
onstatuschange event
Registers a callback function to obtain a status change event.
Syntax
Function (status)
Parameter of the callback function
Parameters:
status
Name:
Status
Object type:
Number
Example
onbatterystatuschange event
Registers call back function and obtains battery status change event. (in ePOS-Print Service Ver.2.2 and
later)
Object type
Function (battery)
Parameter of the callback function
Parameters:
battery
Name:
Batterystatus
Object type:
Number
Example
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.onstatuschange = function (status) {
alert(status);
};
epos.open();
//-->
</script>
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.onbatterystatuschange = function (battery) {
alert(battery);
};
epos.open();
//-->
</script>