setDragListener abstract method

void setDragListener(
  1. MapObjectDragListener? dragListener
)

Sets a drag listener for the object. Each object can only have one drag listener.

The class does not retain the object in the 'dragListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.

Implementation

void setDragListener(
    mapkit_map_map_object_drag_listener.MapObjectDragListener? dragListener);