sEventName | (String) Event name of the Pma object. |
---|---|
sFuncId | (String) Identifier of registered event function.
- Allows to remove of function by the RemoveEvent method.
- Prevents duplicate registering of the same function.
- May contain any characters (this is not a system name).
- Must not be an empty string.
- It is recommended to use e.g. the whole path to the Pmg object. |
Func | (Function) The event function will be called when the event is triggered.
ev: For now, it has no properties. |
function Test(ev)
{
Pm.Debug("AddEvent onTick");
}
pMe.Pm("/Timer").AddEvent("onTick", pMe.GetPathName(), Test);