iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIOverviewAnnotationDragDelegate
@protocol SCIOverviewAnnotationDragDelegate <NSObject>
Defines the listener interface for drag events in the SCIRangeSelectorAnnotation instance.
-
Called when a Drag or move operation starts.
Declaration
Objective-C
- (void)onDragStarted:(nonnull id<ISCIAnnotation>)annotation;Swift
optional 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
optional func onDrag(_ annotation: any ISCIAnnotation, byXDelta xDelta: CGFloat, yDelta: CGFloat)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
optional func onDragEnded(_ annotation: any ISCIAnnotation)Parameters
annotationThe target annotation.
View on GitHub