Instance Method

removeEventListener

Unsubscribes a listener function from an event type.

Declaration

void removeEventListener(String type, function listener, optional Object thisObject);

Parameters

type

The type of event (e.g., "configuration-change").

listener

The callback function to remove.

thisObject

An object to be set as the this keyword on the listener function.

See Also

Initialization

Handling Initialization Events

Handle events that trigger when MapKit JS initializes.

init

Initialize MapKit JS by providing an authorization callback function and optional language.

MapKitInitOptions

Initialization options for MapKit JS.

addEventListener

Subscribes a listener function to an event type.