How should i use methods to set scripts to containers with script?
How should i use methods to set scripts to containers with script?
]]>
« B6 and previous, very small bug… (Previous Post)
< ![CDATA[
You can use PropertyEditor.setEventHandler with one of the event properties listed in the PropertySet description (for instance homeKey, swipeUp, paused) and the action code as defined in the EventHandler class.
]]>
< ![CDATA[
Like this:
item.getProperties().edit()
.setEventHandler(“i.tap”,EventHandler.RUN_SCRIPT,myscript.getId())
.setEventHandler(“i.longTap”,EventHandler.RUN_SCRIPT, myscript2.getId())
.commit();
]]>
< ![CDATA[
Wow!
i could set ❢
very very Thank you lol
]]>