public void SetAction (Action clickEvent, long delay, long interval);

Parameters

clickEventThe action to execute.
delayThe initial delay before the action is executed for the first time.
intervalThe interval between each execution of the action.

Description

Set the action that should be executed when the button is pressed.