Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

listenToAction

listenToAction(action, listener): () => void

Calls listener on each press and release of action, an engine action of engineActions or a plugin’s page action, until what this returns is called. What useAction registers.

Parameter Type
action PageActionHandle
listener ActionListener

() => void