MGLAnnotationViewDragState
enum MGLAnnotationViewDragState {}
These constants indicate the current drag state of an annotation view.
-
The view is not involved in a drag operation.
Declaration
Objective-C
MGLAnnotationViewDragStateNone = 0
Swift
case none = 0
-
An action occurred that indicated the view should begin dragging.
The map view automatically moves draggable annotation views to this state in response to the dragging the view after pressing and holding on it.
Declaration
Objective-C
MGLAnnotationViewDragStateStarting
Swift
case starting = 1
-
The view is in the midst of a drag operation and is actively tracking the user’s gesture.
Declaration
Objective-C
MGLAnnotationViewDragStateDragging
Swift
case dragging = 2
-
An action occurred that indicated the view should cancel the drag operation.
Declaration
Objective-C
MGLAnnotationViewDragStateCanceling
Swift
case canceling = 3
-
An action occurred that indicated the view was dropped by the user.
The map view automatically moves annotation views to this state in response to the user lifting their finger at the end of a drag gesture.
Declaration
Objective-C
MGLAnnotationViewDragStateEnding
Swift
case ending = 4