Материал из Module developer
IR.EVENT_BROWSER_PAGE_ERROR
the identifier of the event which is activated if there is an error at page download
Syntax
IR.AddListener(IR.EVENT_BROWSER_PAGE_ERROR, 0, function, [pointer]);
| input | sample | description |
| driver | IR.CreateDevice(IR.DEVICE_BLE_DEVICE) | type: object the reference to the driver |
| function | function() {} | type: function the unnamed function or reference to the function |
| pointer | - | type: object the pointer to the object which serves the function (optional) |
| output |
| in_url | "https://www.google.ru" | type: String the path to the page |
| in_code | type: Number the error code |
| in_message | type: String The local message for the error code (different for iOs and Android) |
Example:
IR.AddListener(IR.EVENT_BROWSER_PAGE_ERROR, 0, function (in_url, in_code, in_message) { IR.Log (in_url + " " + in_code + " " + in_message); })
