removeEventListener

fun removeEventListener(listener: Listener, scope: Any? = definedExternally): Boolean(source)

Unregisters a previously registered callback.

Return

true if the listener was removed; false if the listener and scope are not registered with the event.

Parameters

listener

The function to be unregistered.

scope

The scope that was originally passed to addEventListener.

See also