YMKMapObjectDragListener

protocol YMKMapObjectDragListener : NSObjectProtocol

This listener is notified when a map object is being dragged. Note that the map object's "draggable" property needs to be set to True in order to activate dragging. A long tap on a map object activates dragging mode.

Summary

Instance methods

func onMapObjectDragStart(with mapObject: YMKMapObject)
Raised when dragging mode is active for the given map object

func onMapObjectDrag(with mapObject: YMKMapObject, point: YMKPoint)
Raised when the user is moving a finger and the map object follows it

func onMapObjectDragEnd(with mapObject: YMKMapObject)
Raised when the user released the tap

Instance methods

onMapObjectDragStart(with:)

func onMapObjectDragStart(with mapObject: YMKMapObject)

Raised when dragging mode is active for the given map object.


onMapObjectDrag(with:point:)

func onMapObjectDrag(with mapObject: YMKMapObject, point: YMKPoint)

Raised when the user is moving a finger and the map object follows it.


onMapObjectDragEnd(with:)

func onMapObjectDragEnd(with mapObject: YMKMapObject)

Raised when the user released the tap.


Предыдущая
Следующая