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:(id<ISCIAnnotation>)annotation;

    Parameters

    annotation

    The target annotation.

  • Called when annotation is dragged or moved.

    Declaration

    Objective-C

    - (void)onDragAnnotation:(id<ISCIAnnotation>)annotation
                    byXDelta:(CGFloat)xDelta
                      yDelta:(CGFloat)yDelta;

    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:(id<ISCIAnnotation>)annotation;

    Parameters

    annotation

    The target annotation.