Материал из Module developer
Перейти к: навигация, поиск

IR.EVENT_BROWSER_CLOSED

the identifier of the event which is activated when closing the browser

Syntax

IR.AddListener(IR.EVENT_BROWSER_CLOSED, 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

-


Example:

IR.AddListener(IR.EVENT_BROWSER_CLOSED, 0, function () {
IR.Log ("Closed");
})