name
plug ( )
None available
description
Plug is a handy method to handle incoming button events. To create a plug you have to implement a method that reacts on the events. To plug a method you need to give a button the method name and the event type you want to react on. If your method is inside a class you have to give the plug a reference to it.
syntax
plug(i_object, i_methodName, i_eventType);
plug(i_methodName, i_eventType);
parameters
i_object
Object: the object with the method to plug
i_methodName
String: the name of the method that has to be plugged
i_eventType
constant: can be ControllIO.ON_PRESS, ControllIO.ON_RELEASE or ControllIO.WHILE_PRESS
returns
None
usage
Web & Application
related