iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIAnnotationDragListener
@protocol ISCIAnnotationDragListener
Defines the listener interface for drag events in the ISCIAnnotation
instance.
-
Called when a Drag or move operation starts.
Declaration
Objective-C
- (void)onDragStarted:(nonnull id<ISCIAnnotation>)annotation;
Swift
func onDragStarted(_ annotation: ISCIAnnotation)
Parameters
annotation
The target annotation.
-
Called when annotation is dragged or moved.
Declaration
Objective-C
- (void)onDragAnnotation:(nonnull id<ISCIAnnotation>)annotation byXDelta:(CGFloat)xDelta yDelta:(CGFloat)yDelta;
Swift
func onDrag(_ annotation: ISCIAnnotation, byXDelta xDelta: Double, yDelta: Double)
Parameters
annotation
The target annotation.
xDelta
The horizontal offset in pixels since last drag event.
yDelta
The horizontal offset in pixels since last drag event.
-
Called when a Drag or Move operation ends.
Declaration
Objective-C
- (void)onDragEnded:(nonnull id<ISCIAnnotation>)annotation;
Swift
func onDragEnded(_ annotation: ISCIAnnotation)
Parameters
annotation
The target annotation.