addUiEventListener

Add a UI event listener.

Parameters

event

The event to listen for.

listener

The function that receives a callback when the specified event occurs.