removeEventListener

abstract fun removeEventListener(type: String, listener: EventListener)
abstract fun removeEventListener(type: String, listener: Value)

Removes the listener from the list of handlers for event type.

Parameters

type

The name of the event.

listener

The callback function.


abstract fun removeEventListener(type: String, listener: Value, options: Value)
abstract fun removeEventListener(type: String, listener: EventListener, options: Value)
abstract fun removeEventListener(type: String, listener: EventListener, options: RemoveEventListenerOptions)

Removes the listener from the list of handlers for event type.

Parameters

type

The name of the event.

listener

The callback function.

options

An option object that specifies characteristics about the event listener.