This function brings user interactivity to your elements. It can change the object properties like fill and stroke color or visibility when you touch / release the element in the run-time.

You can create interactive buttons where the user is notified of the press by a color change. In addition, you can create more complex scenarios like showing/hiding an object border and shadow when touched.