invalidate() Causes the interaction to update the pointer in response to an event. Declarationfunc invalidate()