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: any ISCIAnnotation)Parameters
annotationThe 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: any ISCIAnnotation, byXDelta xDelta: Double, yDelta: Double)Parameters
annotationThe target annotation.
xDeltaThe horizontal offset in pixels since last drag event.
yDeltaThe 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: any ISCIAnnotation)Parameters
annotationThe target annotation.
View on GitHub