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

IR.EVENT_REMOVED_SUBDEVICE

Deleting a subdevice

Синтаксис

module.AddListener(IR.EVENT_REMOVED_SUBDEVICE, 0, function, [pointer]);

Название Пример Описание
function function(in_subDeviceID, in_module) type: function
unnamed function or a reference to a function
  • The coming parameter to a function os subdevice ID and module object
pointer type: object
pointer to an object that services a function (optional)
На выходе

-


Пример

module.AddListener(IR.EVENT_REMOVED_SUBDEVICE, 0, function (in_subDeviceID, in_module)
{
    IR.Log(in_subDeviceID);
	IR.Log(in_module.Name); 	
});