Experimental: this API is experimental and might be changed or removed in the future.

RepeatButton.SetAction

Switch to Manual
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.